[issue6697] Check that _PyUnicode_AsString() result is not NULL
Alexander Belopolsky
report at bugs.python.org
Mon Dec 6 19:16:02 CET 2010
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
I am attaching a patch that fixes several instances of unchecked _PyUnicode_AsString() result. Not all fixes are completely trivial, so I would appreciate a review.
I did not attempt to fix Modules/_gestalt.c because I would like to hear from Ronald first. (See my previous comment.)
The patch doe not have the unit tests yet, but I reported some test cases above and these should be easy to convert to unit tests.
----------
assignee: ronaldoussoren -> belopolsky
keywords: +needs review
stage: needs patch -> patch review
Added file: http://bugs.python.org/file19958/issue6697.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6697>
_______________________________________
More information about the Python-bugs-list
mailing list