New submission from Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43083>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to