]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport:
authorGeorg Brandl <georg@python.org>
Mon, 11 Jul 2005 05:57:11 +0000 (05:57 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 11 Jul 2005 05:57:11 +0000 (05:57 +0000)
commitb3d587184cd082d254e031eb799b66caad3fff8b
tree388f86d50d6157275317f7fd801400a80b482ce5
parent6108583dedeef7193852237a524213f30a5da9bf
Backport:
SF bug 1185883:  PyObject_Realloc can't safely take over a block currently
managed by C, because it's possible for the block to be smaller than the
new requested size, and at the end of allocated VM.  Trying to copy over
nbytes bytes to a Python small-object block can segfault then, and there's
no portable way to avoid this (we would have to know how many bytes
starting at p are addressable, and std C has no means to determine that).
Misc/NEWS
Objects/obmalloc.c