mirror of
https://github.com/python/cpython.git
synced 2026-03-17 18:30:52 +00:00
On a Python built in debug mode, Py_DECREF() now calls _Py_NegativeRefcount() if the object is a dangling pointer to deallocated memory: memory filled with 0xDD "dead byte" by the debug hook on memory allocators. The fix is to check the reference count *before* checking for _Py_IsImmortal(). Add test_decref_freed_object() to test_capi.test_misc. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| __main__.py | ||
| check_config.py | ||
| test_abstract.py | ||
| test_codecs.py | ||
| test_dict.py | ||
| test_eval_code_ex.py | ||
| test_exceptions.py | ||
| test_getargs.py | ||
| test_immortal.py | ||
| test_long.py | ||
| test_mem.py | ||
| test_misc.py | ||
| test_pyatomic.py | ||
| test_structmembers.py | ||
| test_unicode.py | ||
| test_watchers.py | ||