Fix libtiff cleanup by radarhere · Pull Request #9002 · python-pillow/Pillow
Navigation Menu
{{ message }}
python-pillow / Pillow Public
- Notifications You must be signed in to change notification settings
- Fork 2.4k
Merged
radarhere merged 1 commit intopython-pillow:mainfrom
Jun 24, 2025Merged
Fix libtiff cleanup#9002
radarhere merged 1 commit intopython-pillow:mainfrom
Fix libtiff cleanup#9002
radarhere merged 1 commit intopython-pillow:mainfrom
Conversation
Copy link Copy Markdown
Member
radarhere
commented
Jun 7, 2025
radarhere
commented
Alternative to #8992
I've found that since #8954 was merged, there have been intermittent errors.
- 'cannot identify image file' - https://github.com/python-pillow/Pillow/actions/runs/15371601710/job/43251458128
- 'attempt to seek outside sequence' - https://github.com/python-pillow/Pillow/actions/runs/15370070907/job/43247953625
- 'unrecognized data stream contents when reading image file' - https://github.com/python-pillow/Pillow/actions/runs/15370070907/job/43247953635
Testing, I find that the minimal change to fix the problem is to restore one of the calls to TIFFCleanup, and then to set clientstate->tiff = NULL to prevent ImagingLibTiffEncodeCleanup from running afterwards.
radarhere
added
the
TIFF
label
This was referenced
Jun 8, 2025
radarhere
changed the title
Fixed libtiff cleanup
Fix libtiff cleanup
radarhere
added this to the
11.3.0 milestone
radarhere
mentioned this pull request
Merged
radarhere
deleted the
tiff_cleanup
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment