]> granicus.if.org Git - python/commit
bpo-9263: Fix _PyObject_Dump() for freed object (#10661)
authorVictor Stinner <vstinner@redhat.com>
Thu, 22 Nov 2018 15:32:57 +0000 (16:32 +0100)
committerGitHub <noreply@github.com>
Thu, 22 Nov 2018 15:32:57 +0000 (16:32 +0100)
commit2cf5d32fd9e61488e8b0be55a2e92a752ba8b06b
tree78802c10dc7d34e08de079d89a2b5f42464f1f9b
parent9a0d7a7648547ffb77144bf2480155f6d7940dea
bpo-9263: Fix _PyObject_Dump() for freed object (#10661)

If _PyObject_Dump() detects that the object is freed, don't try to
dump it (exit immediately).

Enhance also _PyObject_IsFreed(): it now detects if the pointer
itself looks like freed memory.
Objects/object.c