Skip to content

fix(tiff): fix buffer overrun and make better error reporting#5082

Open
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-tiff-cmyk-fix
Open

fix(tiff): fix buffer overrun and make better error reporting#5082
lgritz wants to merge 1 commit intoAcademySoftwareFoundation:mainfrom
lgritz:lg-tiff-cmyk-fix

Conversation

@lgritz
Copy link
Collaborator

@lgritz lgritz commented Mar 12, 2026

Certain CMYK files (maybe only corrupt ones?) hit an edge case that caused us to read the original 4 channels but into space for only the 3 channels we ultimately report back. Fix that logic.

Also noticed several spots where we didn't correctly report back error messages for newer versions of libtiff. This was some kind of oversight from long ago.

Certain CMYK files (maybe only corrupt ones?) hit an edge case that
caused us to read the original 4 channels but into space for only the
3 channels we ultimately report back. Fix that logic.

Also noticed several spots where we didn't correctly report back
error messages for newer versions of libtiff. This was some kind of
oversight from long ago.

Signed-off-by: Larry Gritz <lg@larrygritz.com>
@lgritz lgritz force-pushed the lg-tiff-cmyk-fix branch from 306aa76 to 5b16b8e Compare March 12, 2026 20:55
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