You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Digging into it a bit, they bytes being passed into readAPICFrame() are 00 69 6d 61 67 65 2f 6a 70 65 67 00 which is just image/jpeg with a null byte at the beginning and end.
I think the file is invalid so it's fair for the library to refuse to parse it, but it should probably just return an error rather than panicking. It's a pretty simple change to add a if len(b) < 1 check to id3v2frames.go right before line 600.
The text was updated successfully, but these errors were encountered:
I've got a file with a stray null byte at the beginning of the mimetype part of the APICFrame. Attempting to read it causes a panic:
Digging into it a bit, they bytes being passed into
readAPICFrame()
are00 69 6d 61 67 65 2f 6a 70 65 67 00
which is justimage/jpeg
with a null byte at the beginning and end.I think the file is invalid so it's fair for the library to refuse to parse it, but it should probably just return an error rather than panicking. It's a pretty simple change to add a
if len(b) < 1
check toid3v2frames.go
right before line 600.The text was updated successfully, but these errors were encountered: