Chandra Sekhar Reddy <sanc...@ca.com> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12755>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to