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

Add imageSizeLimit arg to avifutil avifReadImage() #1941

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

y-guyon
Copy link
Collaborator

@y-guyon y-guyon commented Jan 15, 2024

Use AVIF_DEFAULT_IMAGE_SIZE_LIMIT in places where the image is encoded as AVIF afterwards anyway. Use 2^32-1 in other places for a reasonable threshold.

Avoids out-of-memory issues in fuzztest targets.

No entry in CHANGES.md as it should not impact the set of valid workflows in the public API or tools, besides the returned error code or message.

BUG=oss-fuzz:65700

Use AVIF_DEFAULT_IMAGE_SIZE_LIMIT in places where the image is encoded
as AVIF afterwards anyway. Use 2^32-1 in other places for a reasonable
threshold.

Avoids out-of-memory issues in fuzztest targets.

No entry in CHANGES.md as it should not impact the set of valid
workflows in the public API or tools, besides the returned error code
or message.
Copy link
Collaborator

@vrabaud vrabaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess there is no way the height can be 0 (in all the frame/grid configurations)

@y-guyon y-guyon merged commit 21c1c2c into AOMediaCodec:main Jan 16, 2024
20 checks passed
@y-guyon y-guyon deleted the imagesizelimit branch January 16, 2024 09:31
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