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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 15 Sep 2000 00:08:30 -0700


Patch #101509 has been updated. 

Project: 
Category: core (C code)
Status: Closed
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, ...)



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

Date: 2000-Sep-14 11:53
By: loewis

Comment:
You are right. I've uploaded a revised patch.
-------------------------------------------------------

Date: 2000-Sep-15 00:08
By: loewis

Comment:
Committed as instructed by /F.
-------------------------------------------------------

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

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