New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parseFile error: Buffer length must be even #979
Comments
Thanks for reporting the issue @JL102 The ID3v2.3 I will prevent the error from being throws and capture this in the returned |
Register a warning instead of a fatal error. Resolves #979
Register a warning instead of a fatal error. Resolves #979
Working, thank you! |
Is this TLEN field informal or invalid? Do all of the TLEN has invalid utf-16 string? Or can the workaround be approved in such case? I can't find there is a standard regarding it. |
And the encoding of the TLEN field is UTF-16 (LE), but the BOM of UTF-16 BE (0xFEFF) is used. |
No this is very exceptional, most encoders comply with the standard. But maybe you mean: is any TLEN field with an UTF-16 string invlid? Absolutely, should be ISO-8859-1.
Both for id3v2.3.0 & id3v2.4.0:
|
Bug description
This was originally discovered by a user of MediaMonkeyServer (https://github.com/mediamonkeyserver/mms/): https://www.mediamonkey.com/forum/viewtopic.php?t=101151
Upon calling
mm.parseFile
for certain music files, the promise is rejected with the following error message:Uncaught Error: Buffer length must be even
Expected behavior
N/A (The promise is rejected, so we don't get the metadata)
Reproduction example & stack trace
Audio file demonstrating the problem
If applicable, please drag and drop the zipped audio file(s) which caused the problem into the bug report.
Please create additional issues if you experience different problems for each file.
Sanctuary.zip
I attempted to manually edit one metadata item at a time (using Windows' built-in music properties editor) to see if manually "refreshing" one of the values would stop the errors from occurring, but with no luck.
The text was updated successfully, but these errors were encountered: