Skip to content

Conversation

radarhere
Copy link
Member

@radarhere radarhere commented Sep 3, 2025

Resolves #9168

https://www.fileformat.info/format/fli/egff.htm#FLI-DMYID.3 lists three reserved sections in the FLI header, set to zero.

Pillow currently checks the first of these.

if not (_accept(s) and s[20:22] == b"\x00\x00"):
msg = "not an FLI/FLC file"
raise SyntaxError(msg)

This PR checks the other two as well.

I've also update some of our test images from oss-fuzz to adhere to this new restriction.

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.

Some TIFF files are identified as FLI/FLC files
1 participant