STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Allocate more than 16 bytes on the stack is never a good idea. Eg. Linux does 
never resize the size automatically, and the only way to catch "allocatation 
failed" error is to handle the SIGSEGV signal...

Remove buf allocated on the stack by a buffer allocated on the heap is 
definitly a good ide :-)

----------
nosy: +haypo

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

Reply via email to