Skip to content

Don't fail if EndOfInformation is omitted#391

Open
jasinb wants to merge 2 commits into
image-rs:mainfrom
lumidb:fix-lzw-missing-eoi
Open

Don't fail if EndOfInformation is omitted#391
jasinb wants to merge 2 commits into
image-rs:mainfrom
lumidb:fix-lzw-missing-eoi

Conversation

@jasinb
Copy link
Copy Markdown

@jasinb jasinb commented May 11, 2026

Some real-world LZW-compressed TIFFs omit the trailing EndOfInformation code (libtiff accepts this with a warning). Don't fail with UnexpectedEof in this case.

@jasinb
Copy link
Copy Markdown
Author

jasinb commented May 11, 2026

I was unsure if the correct error message should still be UnexpectedEof if we get NoProgress even with some input remaining, but I opted to keep the diff minimal. Another choice would be InvalidData or something.

@jasinb
Copy link
Copy Markdown
Author

jasinb commented May 11, 2026

The check failures seem unrelated.

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