Skip to content

Conversation

radarhere
Copy link
Member

Before #9046 allowed memory mapping to be used with raw_negative_stride.bin, the negative offset in the tile triggered

Traceback (most recent call last):
  File "PIL/ImageFile.py", line 341, in load
    seek(offset)
OSError: [Errno 22] Invalid argument

Now however, it doesn't. This PR raises a specific error when a negative offset is used with memory mapping.

@radarhere radarhere merged commit cec262c into python-pillow:main Oct 8, 2025
51 checks passed
@radarhere radarhere deleted the mmap_offset branch October 8, 2025 10:56
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.

1 participant