Skip to content

[3.15] gh-154848: Enforce frame boundaries in the C unpickler (GH-154893) - #154977

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-10a8454-3.15
Jul 31, 2026
Merged

[3.15] gh-154848: Enforce frame boundaries in the C unpickler (GH-154893)#154977
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-10a8454-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The C unpickler did not enforce PEP 3154 frame boundaries: an opcode or its
argument could straddle a frame, and a new frame could begin before the
previous one ended. Such reads now raise UnpicklingError, as in the pure
Python implementation.
(cherry picked from commit 10a8454)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

…H-154893)

The C unpickler did not enforce PEP 3154 frame boundaries: an opcode or its
argument could straddle a frame, and a new frame could begin before the
previous one ended.  Such reads now raise UnpicklingError, as in the pure
Python implementation.
(cherry picked from commit 10a8454)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@serhiy-storchaka
serhiy-storchaka enabled auto-merge (squash) July 31, 2026 09:05
@serhiy-storchaka
serhiy-storchaka merged commit c19b4a6 into python:3.15 Jul 31, 2026
55 checks passed
@miss-islington
miss-islington deleted the backport-10a8454-3.15 branch July 31, 2026 09:37
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