]> granicus.if.org Git - python/commit
Fix core dump in PyArg_ParseTuple() with Unicode arguments.
authorJeremy Hylton <jeremy@alum.mit.edu>
Mon, 10 Sep 2001 01:54:43 +0000 (01:54 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Mon, 10 Sep 2001 01:54:43 +0000 (01:54 +0000)
commit77b8b679195c3c247a559449c4269abf9106823c
treebb0c738fd573fcd09e0768e68cf7898511c3cf01
parentbea3fb83a76db479bb7c523fd8c16f7bc23f4336
Fix core dump in PyArg_ParseTuple() with Unicode arguments.

Reported by Fredrik Lundh on python-dev.

The conversimple() code that handles Unicode arguments and converts
them to the default encoding now calls converterr() with the original
Unicode argument instead of the NULL returned by the failed encoding
attempt.
Python/getargs.c