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

Fix setting GIF limits, implement limits for GIF animations #2090

Merged
merged 18 commits into from
Jan 12, 2024

Conversation

Shnatsel
Copy link
Contributor

@Shnatsel Shnatsel commented Jan 9, 2024

  1. Fix .set_limits() on the GIF decoder to actually set limits
  2. Implement limit tracking in the GIF animation decoder, so APIs such as .into_frames() now also obey both image size and allocation limits, including for intermediate buffers
  3. Add tests to verify limits in animation work correctly, which found (1)

At long last, fixes #1052

src/codecs/gif.rs Outdated Show resolved Hide resolved
src/codecs/gif.rs Outdated Show resolved Hide resolved
@fintelia fintelia merged commit d55be71 into image-rs:master Jan 12, 2024
35 checks passed
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.

Large CPU and memory consumption on decoding a crafted GIF file
3 participants