mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-121863: Immortalize names in code objects to avoid crash (GH-121903)
This commit is contained in:
parent
bfdbeac355
commit
cffad5c6ef
2 changed files with 25 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue