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

Check imageSizeLimit earlier in avifjpeg.c #2031

Merged
merged 1 commit into from
Feb 22, 2024

Conversation

y-guyon
Copy link
Collaborator

@y-guyon y-guyon commented Feb 22, 2024

Avoid libjpeg-turbo allocating too many bytes by checking dimensions before calling jpeg_start_decompress().
Inspired from libwebp2.

BUG=oss-fuzz:66924

@y-guyon y-guyon merged commit 22713e3 into AOMediaCodec:main Feb 22, 2024
19 checks passed
@y-guyon y-guyon deleted the earlier_jpeg_size_check branch February 22, 2024 16:22
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