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

Tiff: Make sure 1 Bit compression is only used with 1 bit pixel type #2201

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

brianpopow
Copy link
Collaborator

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) (note: tests are there, but only fail in Debug mode)

Description

Fixes issue #2179: It was possible to choose a invalid encoder option combination with TiffPhotometricInterpretation.Rgb and one of the 1D compressions. This was caught by a Debug.Guard, but well only in Debug mode. This PR fixes Encoder Options sanitization by not allowing this and fallback to RGB/No-Compression.

Sorry, something went wrong.

Verified

This commit was signed with the committer’s verified signature.
nikoulai Nikos Iliakis
Copy link
Member

@JimBobSquarePants JimBobSquarePants left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@brianpopow brianpopow merged commit d33b364 into main Aug 9, 2022
@brianpopow brianpopow deleted the bp/issue2179 branch August 9, 2022 09:54
@brianpopow brianpopow mentioned this pull request Aug 9, 2022
4 tasks
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

2 participants