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 chandra
Recipients amaury.forgeotdarc, chandra, loewis, vstinner
Date 2011-08-17.07:27:10
SpamBayes Score 0.0035515423
Marked as misclassified No
Message-id <1313566031.7.0.923657447703.issue12755@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

Thanks for your valuable feedback, 

As per your suggestion I have re-verified the code for the possibility of NULL values, intrestingly I have observed that buffer overrun is happening in our application, where there is a character array declared with size 200 and a string is being copied without considering the null terminating character.

static PyObject	*eError;
char errorString[200];
_snprintf(errorString, 200, "some message content");
PyErr_SetString(eError, errorString);

I am not 100% sure if this may cause the PyObject_Malloc to fail.

Thanks,
-Chandra
History
Date User Action Args
2011-08-17 07:27:11chandrasetrecipients: + chandra, loewis, amaury.forgeotdarc, vstinner
2011-08-17 07:27:11chandrasetmessageid: <1313566031.7.0.923657447703.issue12755@psf.upfronthosting.co.za>
2011-08-17 07:27:11chandralinkissue12755 messages
2011-08-17 07:27:10chandracreate