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

exif: protect against EXIF data overflow #1070

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

bradh
Copy link
Contributor

@bradh bradh commented Dec 18, 2023

Relates #1042.

26ec395 resolved #1042 with protection against EXIF overflow in the JPEG encoder.

However the report at #1042 was against the PNG encoder. That is addressed at #1052. The review for that identified that its possible to get an overflow in the size += 4, and it looks like that is possible in the JPEG version too.

This PR incorporates the same fix as suggested for #1052.

@farindk farindk merged commit fc9ad84 into strukturag:master Dec 18, 2023
31 checks passed
@bradh bradh deleted the issue1042_take2 branch December 18, 2023 23:55
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.

SEGV libheif/libheif/exif.cc:88 in find_exif_tag
2 participants