[Python-checkins] python/dist/src/Misc NEWS, 1.1193.2.60, 1.1193.2.61

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Mon Jul 11 07:57:13 CEST 2005


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6037/Misc

Modified Files:
      Tag: release24-maint
	NEWS 
Log Message:
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).



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.1193.2.60
retrieving revision 1.1193.2.61
diff -u -d -r1.1193.2.60 -r1.1193.2.61
--- NEWS	8 Jul 2005 22:25:17 -0000	1.1193.2.60
+++ NEWS	11 Jul 2005 05:57:10 -0000	1.1193.2.61
@@ -12,6 +12,15 @@
 Core and builtins
 -----------------
 
+- SF bug #1185883:  Python's small-object memory allocator took over
+  a block managed by the platform C library whenever a realloc specified
+  a small new size.  However, there's no portable way to know then how
+  much of the address space following the pointer is valid, so no
+  portable way to copy data from the C-managed block into Python's
+  small-object space without risking a memory fault.  Python's small-object
+  realloc now leaves such blocks under the control of the platform C
+  realloc.
+
 - Fix garbage collection for set and frozenset objects.  SF patch #1200018.
 
 - It is now safe to call PyGILState_Release() before



More information about the Python-checkins mailing list