diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-07-17 09:31:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 09:31:28 (GMT) |
commit | cffad5c6ef9371b26e32556296cea2bfe8358b1a (patch) | |
tree | 1a9a5ca43bf3a137736c89b5304790e52e74b23b /Objects | |
parent | bfdbeac355235f6831ace5b514264bd1908000e5 (diff) | |
download | cpython-cffad5c6ef9371b26e32556296cea2bfe8358b1a.zip cpython-cffad5c6ef9371b26e32556296cea2bfe8358b1a.tar.gz cpython-cffad5c6ef9371b26e32556296cea2bfe8358b1a.tar.bz2 |
gh-121863: Immortalize names in code objects to avoid crash (GH-121903)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/codeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 7493280..d45ba5e 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -147,7 +147,7 @@ intern_strings(PyObject *tuple) "non-string found in code slot"); return -1; } - _PyUnicode_InternMortal(interp, &_PyTuple_ITEMS(tuple)[i]); + _PyUnicode_InternImmortal(interp, &_PyTuple_ITEMS(tuple)[i]); } return 0; } |