Skip to content

Only raise the error at the last possible operation#3

Merged
nevercodecorrect merged 1 commit into
nevercodecorrect:jp2-oversized-box-lengthfrom
radarhere:jp2-oversized-box-length
Jul 24, 2026
Merged

Only raise the error at the last possible operation#3
nevercodecorrect merged 1 commit into
nevercodecorrect:jp2-oversized-box-lengthfrom
radarhere:jp2-oversized-box-length

Conversation

@radarhere

Copy link
Copy Markdown

Suggestion for python-pillow#9818

You've said that the OverflowError might occur when reading the box data. Fair enough - my suggestion would be to just check the position when running the read operation as well.

@nevercodecorrect
nevercodecorrect merged commit 0a578cc into nevercodecorrect:jp2-oversized-box-length Jul 24, 2026
43 of 44 checks passed
@radarhere
radarhere deleted the jp2-oversized-box-length branch July 25, 2026 02:20
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.

2 participants