New submission from Erlend Egeberg Aasland <erlend.aasl...@innova.no>:
Fix sqlite3_value_text() usage: - Raise MemoryError if sqlite3_value_text() sets SQLITE_NOMEM - Let PyUnicode_FromStringAndSize() errors propagate Quoting the SQLite docs: "As long as the input parameter is correct, these routines can only fail if an out-of-memory error occurs" See also: - bpo-43296 - https://sqlite.org/c3ref/value_blob.html ---------- components: Extension Modules files: patch.diff keywords: patch messages: 391124 nosy: berker.peksag, erlendaasland, serhiy.storchaka priority: normal severity: normal status: open title: [sqlite] Fix sqlite3_value_text() usage type: behavior versions: Python 3.10 Added file: https://bugs.python.org/file49961/patch.diff _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43853> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com