Skip to content

Use while loop in read_prev_trailer() to avoid RecursionError - #10023

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:loop
Sep 18, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:loop

Conversation

@radarhere

Copy link
Copy Markdown
Member

#9519 covered an infinite loop from a trailer chain.

This covers a trailer chain that is not infinite, but long enough to still trigger a RecursionError.

@radarhere
radarhere enabled auto-merge (squash) September 18, 2026 12:15
Co-authored-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
@radarhere
radarhere merged commit 852d834 into python-pillow:main Sep 18, 2026
63 of 65 checks passed
@radarhere
radarhere deleted the loop branch September 18, 2026 12:40
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