[New-bugs-announce] [issue7670] _sqlite3: Block *all* operations on a closed Connection object

STINNER Victor report at bugs.python.org
Sun Jan 10 19:42:14 CET 2010

New submission from STINNER Victor <victor.stinner at haypocalc.com>:

Add call to pysqlite_check_connection() on the follow methods:

 * create_function()
 * create_aggregate()
 * set_authorizer()
 * set_progress_handler()
 * __call__()

Eg. fix the following segfault:

   c = Connection("test")

The patch includes unit tests to test all methods on a closed connection.

sqlite3 already raises an error for some operations on a closed socket (eg. connection.commit()), but not on all operations.

components: Extension Modules
files: sqlite_closed.patch
keywords: patch
messages: 97538
nosy: haypo
severity: normal
status: open
title: _sqlite3: Block *all* operations on a closed Connection object
type: crash
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file15819/sqlite_closed.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list