[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: Thank you for the backport Oren, I already merged it into Python 2.7. Thanks Oren Milman for your bug report *and* for your bug fix! > I opened #4333 for 2.7, but it is quite straightforward.. Am i missing > something? Sorry, I had to say that "git cherry-p

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread STINNER Victor
STINNER Victor added the comment: New changeset cd66d6d632b4a8190e97f265ee163f11b5ae38e6 by Victor Stinner (Oren Milman) in branch '2.7': bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-4333) https://github.com/python/cpython/commit/cd66d6d6

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread Oren Milman
Oren Milman added the comment: I opened #4333 for 2.7, but it is quite straightforward.. Am i missing something? -- ___ Python tracker ___

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-08 Thread Oren Milman
Change by Oren Milman : -- pull_requests: +4288 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset b0331c94c2a210d50e43d99b249ec83ee165e70c by Victor Stinner (Miss Islington (bot)) in branch '3.6': bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-3958) (#4303) https://github.com/python/cpytho

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-06 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 2.7, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: @Oren: The 2.7 backport is not straighforward. Would you mind to backport the fix to 2.7, please? -- ___ Python tracker ___ _

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-06 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4266 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-11-06 Thread STINNER Victor
STINNER Victor added the comment: New changeset edb13ae48c17210fa4b2d40a6833ca09db5c121b by Victor Stinner (Oren Milman) in branch 'master': bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (#3958) https://github.com/python/cpython/commit/edb13ae

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-10-11 Thread Oren Milman
Change by Oren Milman : -- keywords: +patch pull_requests: +3934 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue31764] sqlite3.Cursor.close() crashes in case the Cursor object is uninitialized

2017-10-11 Thread Oren Milman
New submission from Oren Milman : 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_th