Skip to content
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

Don't crash when an invalid TIFF file has no fields. #289

Conversation

ben-xo
Copy link
Contributor

@ben-xo ben-xo commented Feb 21, 2021

getID3 sometimes detects files as TIFF incorrectly, and then extracts no fields, causing a crash.

(The file was a minimal example from https://stackoverflow.com/questions/57192090/minimal-audio-wav-or-mp3-file-in-bytes-for-unit-testing, and may not actually be a valid MP3 after all, but that isn't really important for the purpose of the fix).

getID3 sometimes detects files as TIFF incorrectly, and then extracts no fields, causing a crash.
@ben-xo
Copy link
Contributor Author

ben-xo commented Feb 21, 2021

example file which triggers the bug.

empty.mp3.zip

@JamesHeinrich JamesHeinrich merged commit 49d5250 into JamesHeinrich:master Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants