[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-29 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Erlend! ✨  ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> crash ___ Python tracker ___

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset ed807bf333cdc78b92c9861600acf1a435c52193 by Łukasz Langa in branch '3.9': [3.9] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171) (GH-29324)

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7e2c0a18b41cb906a354776e6ca52af81e39820f by Łukasz Langa in branch '3.10': [3.10] bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171) (GH-29323)

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-29 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27594 pull_request: https://github.com/python/cpython/pull/29324 ___ Python tracker ___

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-29 Thread Łukasz Langa
Change by Łukasz Langa : -- pull_requests: +27593 pull_request: https://github.com/python/cpython/pull/29323 ___ Python tracker ___

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-29 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset e2e62b3808691e15fa44b883270023e42dcad958 by Erlend Egeberg Aasland in branch 'main': bpo-45581: Raise `MemoryError` in `sqlite3.connect` if SQLite signals memory error (GH-29171)

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-22 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- keywords: +patch pull_requests: +27444 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29171 ___ Python tracker

[issue45581] [sqlite3] raise MemoryError if sqlite3_open_v2() returns SQLITE_NOMEM

2021-10-22 Thread Erlend E. Aasland
New submission from Erlend E. Aasland : Currently, we call _pysqlite_seterror() if sqlite3_open_v2() returns != SQLITE_OK. However, if a memory failure occurs during sqlite3_open_v2(), the database handle is explicitly set to NULL. This _may_ cause _pysqlite_seterror() to segfault, since we