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

MRF: Adjust PNG limits #5347

Merged
merged 3 commits into from
Feb 18, 2022
Merged

MRF: Adjust PNG limits #5347

merged 3 commits into from
Feb 18, 2022

Conversation

lucianpls
Copy link
Contributor

What does this PR do?

PNGs can be considerable larger than the input, especially if zlib level zero is used, which means store uncompressed.
This change makes the output buffer larger and enforces a minimum zlib level of 1.

What are related issues/pull requests?

Tasklist

  • ADD YOUR TASKS HERE
  • Add test case(s)
  • Add documentation
  • Review
  • Adjust for comments
  • All CI builds and checks have passed

Environment

Provide environment details, if relevant:

  • OS:
  • Compiler:

Don't allow uncompressed PNGs to be generated.
Increase the output buffer size to avoid overflow.
@rouault rouault merged commit 6e6aff4 into OSGeo:master Feb 18, 2022
github-actions bot pushed a commit that referenced this pull request Feb 19, 2022
Don't allow uncompressed PNGs to be generated.
Increase the output buffer size to avoid overflow.
@lucianpls lucianpls deleted the MRF-PNGlimits branch March 7, 2022 18:11
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.

None yet

2 participants