◐ Shell
reader mode source ↗
Skip to content

[backport to 3.5] bpo-29438: Fixed use-after-free in key sharing dict#40

Merged
methane merged 1 commit into
python:3.5from
methane:bpo29438/py35
Feb 13, 2017
Merged

[backport to 3.5] bpo-29438: Fixed use-after-free in key sharing dict#40
methane merged 1 commit into
python:3.5from
methane:bpo29438/py35

Conversation

@methane

@methane methane commented Feb 12, 2017

Copy link
Copy Markdown
Member

No description provided.

@methane methane added the type-bug An unexpected behavior, bug, or error label Feb 12, 2017
@methane methane changed the title bpo-29438: Fixed use-after-free in key sharing dict Feb 12, 2017
@methane methane merged commit 06a4fcb into python:3.5 Feb 13, 2017
@methane methane deleted the bpo29438/py35 branch February 13, 2017 00:16
jaraco pushed a commit that referenced this pull request Dec 2, 2022
oraluben pushed a commit to oraluben/cpython that referenced this pull request Jun 25, 2023
johnslavik pushed a commit to johnslavik/cpython that referenced this pull request Dec 19, 2025
SonicField added a commit to SonicField/cpython that referenced this pull request Apr 15, 2026
Move bytecode_offset=-1 initialization into hir_c_alloc_instr so the
invariant is structurally enforced — even if hir_c_init_instr is
accidentally skipped, bytecode_offset will be -1 (not 0 from calloc).

Add runtime regression test in hir_instr_c_verify.cpp that verifies
the invariant for all three allocation paths (raw alloc, init_instr,
init_deopt). Runs at startup via __attribute__((constructor)).

Addresses gap flagged 5 times (Pythia python#14, python#40, python#59, librarian x2).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants