You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[sqlite3] Handle out-of-memory errors in sqlite3_column_*() #87535
Quoting from the SQLite docs:
"As long as the input parameters are correct, these routines will only fail if an out-of-memory error occurs during a format conversion"
New changeset e161ec5 by Erlend Egeberg Aasland in branch 'master': bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723) e161ec5
Activity
erlend-aasland commentedon Mar 2, 2021
If sqlite3_column_text() and sqlite3_column_blob() return NULL and sqlite3_errcode() returns SQLITE_NOMEM, we should raise MemoryError and bail.
erlend-aasland commentedon Mar 3, 2021
Quoting from the SQLite docs:
"As long as the input parameters are correct, these routines will only fail if an out-of-memory error occurs during a format conversion"
berkerpeksag commentedon Mar 4, 2021
New changeset e161ec5 by Erlend Egeberg Aasland in branch 'master':
bpo-43369: sqlite3_column_{text,blob} failures now raise MemoryError (GH-24723)
e161ec5