Commit e1e028d
committed
fix(cli): Check frame ID lengths on cmdline
Without this, rsid3 interprets something invalid like --XD as a getter
and attempts to create an XD text frame, triggering a panic from within
the id3 crate.
In ID3v2.3 and ID3v2.4, all frames IDs are guaranteed a length of 4.
This will get changed as support for ID3v2.2 gets added later.1 parent 6cc09c1 commit e1e028d
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
503 | | - | |
| 503 | + | |
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
| 523 | + | |
524 | 524 | | |
525 | 525 | | |
526 | 526 | | |
0 commit comments