Skip to content

Commit 95979d1

Browse files
[3.14] gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE marshal stream (GH-148419) (GH-149363)
(cherry picked from commit c3972f2) Co-authored-by: Wulian233 <1055917385@qq.com>
1 parent 62f5d94 commit 95979d1

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a possible reference leak in a corrupted ``TYPE_CODE`` marshal stream.

Python/marshal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,7 @@ r_object(RFILE *p)
16081608
goto code_error;
16091609
firstlineno = (int)r_long(p);
16101610
if (firstlineno == -1 && PyErr_Occurred())
1611-
break;
1611+
goto code_error;
16121612
linetable = r_object(p);
16131613
if (linetable == NULL)
16141614
goto code_error;

0 commit comments

Comments
 (0)