This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients maxxedev, neologix, pitrou, rhettinger, stutzbach
Date 2013-03-03.20:56:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362344200.19.0.471466897265.issue17278@psf.upfronthosting.co.za>
In-reply-to
Content
Antoine, thanks for the patch.  This looks like a reasonable solution that is fast and prevents segfaults.

The error message should say more than just that the size changed. it should also note that the heap may no longer be in the heap condition since it was interrupted in the middle of an update.

I'm also wondering whether a stronger check is needed than detecting a length change (perhaps something akin to the logic used in Py_ReprEnter and Py_ReprLeave).
History
Date User Action Args
2013-03-04 09:06:28rhettingerunlinkissue17278 messages
2013-03-03 20:56:40rhettingersetrecipients: + rhettinger, pitrou, stutzbach, neologix, maxxedev
2013-03-03 20:56:40rhettingersetmessageid: <1362344200.19.0.471466897265.issue17278@psf.upfronthosting.co.za>
2013-03-03 20:56:40rhettingerlinkissue17278 messages
2013-03-03 20:56:39rhettingercreate