]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Backport 43022:
authorNeal Norwitz <nnorwitz@gmail.com>
Tue, 14 Mar 2006 06:10:22 +0000 (06:10 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Tue, 14 Mar 2006 06:10:22 +0000 (06:10 +0000)
commit9165680203a10341e7e76c92d12c76f5ddd1f6e1
treed62689ac7faab56777be9af40f41f7d62af3ef3c
parent2f014f8d0bdd80fb0d650f5c20bd13bb3660f541
Backport 43022:

Fix and test (manually w/xx module) passing NULLs to PyObject_Str() and
PyObject_Unicode().  This problem was originally reported from Coverity
and addresses mail on python-dev "checkin r43015".

This inlines the conversion of the string to unicode and cleans
up/simplifies some code at the end of the PyObject_Unicode().

We really need a complete C API test module for all public APIs
and passing good and bad parameter values.
Modules/xxmodule.c
Objects/object.c