[issue8195] Crash in sqlite3.create_collation() with a string non encodable to utf8
STINNER Victor
report at bugs.python.org
Mon Mar 22 00:37:05 CET 2010
New submission from STINNER Victor <victor.stinner at haypocalc.com>:
sqlite.connect(":memory:").create_collation, "\uDC80", collation_cb) because _PyUnicode_AsString() returns NULL and error, and the result is not checked.
Attached patch fixes the crash.
I didn't checked if the problem does also concern Python 2.x.
----------
components: Library (Lib)
files: sqlite_collation-py3k.patch
keywords: patch
messages: 101468
nosy: haypo
severity: normal
status: open
title: Crash in sqlite3.create_collation() with a string non encodable to utf8
type: crash
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file16616/sqlite_collation-py3k.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8195>
_______________________________________
More information about the Python-bugs-list
mailing list