[issue1950] Potential overflows due to incorrect usage of PyUnicode_AsString.

Alexander Belopolsky report at bugs.python.org
Sun Apr 27 06:27:59 CEST 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

The patch looks good.  Just a question: I thought the strings returned by PyUnicode_AsStringAndSize are 0-terminated, while your patch at several 
places attempts to explicitly 0-terminate a copy of such string.  Are you 
sure this is necessary?

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1950>
__________________________________


More information about the Python-bugs-list mailing list