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 vstinner
Recipients Thomas.Smith, dmalcolm, doko, ezio.melotti, liang, neologix, pitrou, tim.peters, vstinner
Date 2010-04-20.13:11:10
SpamBayes Score 2.0970953e-07
Marked as misclassified No
Message-id <1271769071.65.0.442926804361.issue7332@psf.upfronthosting.co.za>
In-reply-to
Content
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 :-)
History
Date User Action Args
2010-04-20 13:11:11vstinnersetrecipients: + vstinner, tim.peters, doko, pitrou, ezio.melotti, dmalcolm, liang, Thomas.Smith, neologix
2010-04-20 13:11:11vstinnersetmessageid: <1271769071.65.0.442926804361.issue7332@psf.upfronthosting.co.za>
2010-04-20 13:11:10vstinnerlinkissue7332 messages
2010-04-20 13:11:10vstinnercreate