[issue6697] Check that _PyUnicode_AsString() result is not NULL

Alexander Belopolsky report at bugs.python.org
Tue Dec 7 18:19:26 CET 2010


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

I am attaching a revised version of the patch which also includes some tests.  Interestingly, the issue in syslog module is a regression from 3.1 introduced in r80401.  Although it is not a crasher, I don't think it was intentional because although openlog() is happy to accept NULL for indent, the error from  _PyUnicode_AsString() would have to be cleared if the intent was to ignore undecodable indent.

----------
nosy: +jafo

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6697>
_______________________________________


More information about the Python-bugs-list mailing list