This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, vstinner
Date 2013-12-19.10:05:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1387447552.86.0.0617469678586.issue20023@psf.upfronthosting.co.za>
In-reply-to
Content
Example:

$ ./python -c "import _csv; _csv.Dialect(escapechar=b'x')"
python: Python/ceval.c:4262: call_function: Assertion `(x != ((void *)0) && !PyErr_Occurred()) || (x == ((void *)0) && PyErr_Occurred())' failed.
Abandon (core dumped)

Attached patch should fix this issue and adds a unit test.

Note: I found this issue using Fusil the fuzzer.
History
Date User Action Args
2013-12-19 10:05:52vstinnersetrecipients: + vstinner, serhiy.storchaka
2013-12-19 10:05:52vstinnersetmessageid: <1387447552.86.0.0617469678586.issue20023@psf.upfronthosting.co.za>
2013-12-19 10:05:52vstinnerlinkissue20023 messages
2013-12-19 10:05:52vstinnercreate