[New-bugs-announce] [issue43083] Minor errors related to error handling in _sqlite3 module

Serhiy Storchaka report at bugs.python.org
Sun Jan 31 08:47:29 EST 2021


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

There are few minor errors in the _sqlite3:

* In two places the result of PyList_Append() is not checked.
* The lastrowid field of pysqlite_Cursor can contain a reference to destroyed object when GIL is released for calling sqlite3_last_insert_rowid().
* Exception after PyDict_DelItem() in pysqlite_connection_create_collation_impl() is not cleared before calling _pysqlite_seterror() (and there is always an exception set if callable is None). Unlikely it can cause problems, but it is better to be explicit.

----------
components: Extension Modules
messages: 386015
nosy: berker.peksag, ghaering, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Minor errors related to error handling in _sqlite3 module
versions: Python 3.10, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43083>
_______________________________________


More information about the New-bugs-announce mailing list