diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2025-02-25 21:04:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-25 21:04:27 (GMT) |
commit | 0ef4ffeefd1737c18dc9326133c7894d58108c2e (patch) | |
tree | dc3614077d06e68df192e57505951b80012a2e31 /Python/instruction_sequence.c | |
parent | 2dad1e08ec9d5ddc798a313900613b3d1eeaff6b (diff) | |
download | cpython-0ef4ffeefd1737c18dc9326133c7894d58108c2e.zip cpython-0ef4ffeefd1737c18dc9326133c7894d58108c2e.tar.gz cpython-0ef4ffeefd1737c18dc9326133c7894d58108c2e.tar.bz2 |
gh-130163: Fix crashes related to PySys_GetObject() (GH-130503)
The use of PySys_GetObject() and _PySys_GetAttr(), which return a borrowed
reference, has been replaced by using one of the following functions, which
return a strong reference and distinguish a missing attribute from an error:
_PySys_GetOptionalAttr(), _PySys_GetOptionalAttrString(),
_PySys_GetRequiredAttr(), and _PySys_GetRequiredAttrString().
Diffstat (limited to 'Python/instruction_sequence.c')
0 files changed, 0 insertions, 0 deletions