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

Ensure correct JPEG2000 SIZ segment bounds check #944

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

lovell
Copy link
Contributor

@lovell lovell commented Aug 20, 2023

This PR offers a possible improvement to the JPEG2000 SIZ segment bounds check introduced in 7bf1cdf to ensure the data is long enough to read out all of the components.

It also adds a sample file discovered via fuzz testing that will currently trigger a buffer overflow.

@lovell lovell force-pushed the j2k-siz-segment-bounds branch from 4970fc4 to c6af00f Compare October 4, 2023 10:27
@lovell
Copy link
Contributor Author

lovell commented Oct 4, 2023

@farindk This is currently the only other (known) buffer overflow in libheif found via the libvips fuzzers.

@farindk farindk merged commit 09a2634 into strukturag:master Oct 4, 2023
29 of 30 checks passed
@lovell lovell deleted the j2k-siz-segment-bounds branch October 4, 2023 10:34
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