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

STINNER Victor report at bugs.python.org
Fri Jul 15 10:40:36 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> It seems that a fix was merged in the 3.1 branch,
> somewhere between 3.1.2 and 3.1.3.

Which fix? The code is still wrong in Mercurial (branch 3.1):

   493     operation_cstr = _PyUnicode_AsStringAndSize(operation, &operation_len);
   494     if (operation == NULL)
   495         goto error;

http://hg.python.org/cpython/file/42ec507815d2/Modules/_sqlite/cursor.c

----------

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


More information about the Python-bugs-list mailing list