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.

@radarhere radarhere added this to the 12.0.0 milestone Oct 2, 2025
@hugovk hugovk merged commit a2e2939 into python-pillow:main Oct 4, 2025
51 checks passed
@radarhere radarhere deleted the fli_reserved branch October 4, 2025 08:03
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

2 participants