mirror of
https://github.com/python/cpython.git
synced 2026-05-06 04:37:33 -04:00
[3.14] gh-148418: Fix a possible reference leak in a corrupted TYPE_CODE marshal stream (GH-148419) (GH-149363)
(cherry picked from commit c3972f2795)
Co-authored-by: Wulian233 <1055917385@qq.com>
This commit is contained in:
committed by
GitHub
parent
62f5d946b2
commit
95979d1813
@@ -0,0 +1 @@
|
||||
Fix a possible reference leak in a corrupted ``TYPE_CODE`` marshal stream.
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user