[Patches] [Patch #101509] Fix for 114424: PyTuple_Resize buggy with cyclic gc

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Sep 2000 11:28:40 -0700


Patch #101509 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: Fix for 114424: PyTuple_Resize buggy with cyclic gc

Follow-Ups:

Date: 2000-Sep-14 11:28
By: nascheme

Comment:
This looks like a real bug.   If realloc returns a new pointer then using g is wrong.  I'm not sure about this patch though.  I think the realloc line should be changed to:

 g = (PyTupleObject *) PyObject_REALLOC((char *)g, ...)



-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101509&group_id=5470