Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix file position desync when calling into libtiff #8560

Merged
merged 6 commits into from
Nov 29, 2024

Conversation

Knio
Copy link
Contributor

@Knio Knio commented Nov 20, 2024

Fixes #8559

Changes proposed in this pull request:

  • Save and restore file handle position when passing file handle to libtiff

@radarhere radarhere added the TIFF label Nov 20, 2024
@radarhere radarhere mentioned this pull request Nov 20, 2024
[
"Tests/images/old-style-jpeg-compression-no-samplesperpixel.tif",
"Tests/images/old-style-jpeg-compression.tif",
],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything different between these two files that means that one might conceivably fail where the other wouldn't? Or are you just testing two to be thorough?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, these were just the files that reproduced the issue

Knio and others added 2 commits November 20, 2024 05:21
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
@radarhere radarhere merged commit 1c15225 into python-pillow:main Nov 29, 2024
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TIFF image loading EXIF corruption
2 participants