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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit ancillary PNG chunk size. #2681

Merged
merged 1 commit into from Mar 1, 2024

Conversation

JimBobSquarePants
Copy link
Member

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 馃懏.
  • I have provided test coverage for my change (where applicable)

Description

Adds a configurable value limiting the size of uncompressed buffers in ancillary PNG chunks.

this.header.Height,
metadata);
}
image = new Image<TPixel>(this.configuration, this.header.Width, this.header.Height, metadata);
Copy link
Member Author

Choose a reason for hiding this comment

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

The optimization was causing more trouble than it was worth. Any PNGs with invalid data yielded non-deterministic results.

@JimBobSquarePants JimBobSquarePants merged commit 0942689 into release/3.1.x Mar 1, 2024
29 checks passed
@JimBobSquarePants JimBobSquarePants deleted the js/png-dimensions-fix branch March 1, 2024 11:37
This was referenced Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants