Message142254
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 |
|
Date |
User |
Action |
Args |
2011-08-17 07:27:11 | chandra | set | recipients:
+ chandra, loewis, amaury.forgeotdarc, vstinner |
2011-08-17 07:27:11 | chandra | set | messageid: <1313566031.7.0.923657447703.issue12755@psf.upfronthosting.co.za> |
2011-08-17 07:27:11 | chandra | link | issue12755 messages |
2011-08-17 07:27:10 | chandra | create | |
|