]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Correct a crash when two successive unicode allocations fail with a MemoryError:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 31 Jul 2008 23:39:05 +0000 (23:39 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Thu, 31 Jul 2008 23:39:05 +0000 (23:39 +0000)
commit06847b13ca28ef88e0ded4ce985c46317ba8cdaf
tree538beea91ca49f9cfeb724c4de85824cb45a2f4d
parentad9604003ccfcf956375bbc2aeaac078b7bc9b23
Correct a crash when two successive unicode allocations fail with a MemoryError:
the freelist contained half-initialized objects with freed pointers.

The comment
/* XXX UNREF/NEWREF interface should be more symmetrical */
was copied from tupleobject.c, and appears in some other places.
I sign the petition.
Lib/test/test_unicode.py
Objects/unicodeobject.c