Skip to content

Ensure EXIF is at least 4 bytes before inspection #3109

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

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

lovell
Copy link
Member

@lovell lovell commented Oct 22, 2022

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52606

This was exposed by me in #3100, sorry.

@jcupitt
Copy link
Member

jcupitt commented Oct 22, 2022

No problem, I should have spotted it :( isprefix avoids buffer overflow, but only for null-terminated strings, which of course this isn't :(

@jcupitt jcupitt merged commit c76d74b into libvips:8.13 Oct 22, 2022
@lovell lovell deleted the 8.13-exif-min-length branch October 22, 2022 14:18
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.

2 participants