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 mark.dickinson, rhettinger
Date 2008-11-27.18:42:24
SpamBayes Score 0.038803358
Marked as misclassified No
Message-id <1227811345.66.0.0434737471672.issue4445@psf.upfronthosting.co.za>
In-reply-to
Content
Suggestion:

#define PyStringObject_SIZE (offsetof(PyStringObject, ob_sval) + 1)


 	/* Inline PyObject_NewVar */
-	op = (PyStringObject *)PyObject_MALLOC(sizeof(PyStringObject) + size);
 	/* Inline PyObject_NewVar */
+	op = (PyStringObject *)PyObject_MALLOC(PyStringObject_SIZE + size);
History
Date User Action Args
2008-11-27 18:42:25rhettingersetrecipients: + rhettinger, mark.dickinson
2008-11-27 18:42:25rhettingersetmessageid: <1227811345.66.0.0434737471672.issue4445@psf.upfronthosting.co.za>
2008-11-27 18:42:24rhettingerlinkissue4445 messages
2008-11-27 18:42:24rhettingercreate