Fix file position desync when calling into libtiff by Knio · Pull Request #8560 · python-pillow/Pillow

Conversation

@Knio

Fixes #8559

Changes proposed in this pull request:

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

Knio and others added 2 commits

November 19, 2024 21:49

@Knio Knio mentioned this pull request

Nov 20, 2024

radarhere

radarhere

[
"Tests/images/old-style-jpeg-compression-no-samplesperpixel.tif",
"Tests/images/old-style-jpeg-compression.tif",
],

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?

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

Labels

2 participants

@Knio @radarhere