[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jul 15 11:56:42 CEST 2011


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

The fix was c073f3c3276e (thanks to hg bisect)
the variable operation_cstr is not used before the call to pysqlite_cache_get(), which also tries to encode the statement into utf8 and correctly raises an exception.
In early 3.1.2, the segfault came from the DECREF of an uninitialized member...

----------

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


More information about the Python-bugs-list mailing list