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

Validate size of uncompressed alpha chunks #40

Merged
merged 3 commits into from
Jan 1, 2024

Conversation

fintelia
Copy link
Contributor

@fintelia fintelia commented Jan 1, 2024

Using read_exact to load uncompressed alpha chunks prevents overly short chunks from giving us inconsistent dimensions.

Also adjusts some arguments to reflect that frames larger than 16384x16384 are not allowed by the spec (these would have been caught later when the VP8 / VP8L chunk failed to decode due to inconsistent dimensions).

@fintelia fintelia merged commit 5e680cc into image-rs:main Jan 1, 2024
9 checks passed
@fintelia fintelia deleted the fix-37 branch January 1, 2024 06:52
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.

1 participant