Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE mar…
…shal stream (GH-148419)

(cherry picked from commit c3972f2)

Co-authored-by: Wulian233 <1055917385@qq.com>
  • Loading branch information
Wulian233 authored and miss-islington committed May 4, 2026
commit 2923ae01faa3cfc4800e2000f974f439db28a504
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a possible reference leak in a corrupted ``TYPE_CODE`` marshal stream.
2 changes: 1 addition & 1 deletion Python/marshal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ r_object(RFILE *p)
goto code_error;
firstlineno = (int)r_long(p);
if (firstlineno == -1 && PyErr_Occurred())
break;
goto code_error;
linetable = r_object(p);
if (linetable == NULL)
goto code_error;
Expand Down
Loading