https://github.com/python/cpython/commit/98ef4837ecb1f68af5f2ab073e9451bdb3b57af0
commit: 98ef4837ecb1f68af5f2ab073e9451bdb3b57af0
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: picnixz <10796600+picn...@users.noreply.github.com>
date: 2025-05-11T08:44:22Z
summary:

[3.14] gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized 
(GH-133681) (#133872)

gh-133590: ensure that `TableEntry.linenumber_borrow` is initialized (GH-133681)
(cherry picked from commit c838e21fda21bb3ff91f586374e0da776c1c567b)

Co-authored-by: Lauta <l...@ljfp.xyz>

files:
M Python/stackrefs.c

diff --git a/Python/stackrefs.c b/Python/stackrefs.c
index 979a6b1c62820a..69d4e8b943159f 100644
--- a/Python/stackrefs.c
+++ b/Python/stackrefs.c
@@ -1,4 +1,3 @@
-
 #include "Python.h"
 
 #include "pycore_object.h"
@@ -34,6 +33,7 @@ make_table_entry(PyObject *obj, const char *filename, int 
linenumber)
     result->filename = filename;
     result->linenumber = linenumber;
     result->filename_borrow = NULL;
+    result->linenumber_borrow = 0;
     return result;
 }
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to