New submission from Oren Milman <[email protected]>: The following code causes a crash: import sqlite3 cursor = sqlite3.Cursor.__new__(sqlite3.Cursor) cursor.close()
this is because pysqlite_cursor_close() (in Modules/_sqlite/cursor.c) assumes that `self->connection` is not NULL, and passes it to pysqlite_check_thread(), which crashes. I would open a PR to fix this soon. ---------- components: Extension Modules messages: 304172 nosy: Oren Milman priority: normal severity: normal status: open title: sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized type: crash versions: Python 3.7 _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue31764> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
