8000 gh-92434: Silence a compiler warning in _sqlite/connection.c for 32bit version by neonene · Pull Request #93090 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92434: Silence a compiler warning in _sqlite/connection.c for 32bit version #93090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 10, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension
8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use INT_MAX, update NEWS
  • Loading branch information
neonene committed Jun 2, 2022
commit 7bb93cd48e9d9f7204c2238fe98a0ddeccbacc84
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
:meth:`~sqlite3.Connection.serialize` raises :exc:`OverflowError` on 32bit Python
when more than ``Py_SSIZE_T_MAX`` bytes of serialization occurs.
:meth:`sqlite3.Connection.serialize` now raises :exc:`OverflowError` on 32-bit
platforms if the serialized database exceeds ``Py_SSIZE_T_MAX`` bytes.
2 changes: 1 addition & 1 deletion Modules/_sqlite/connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2092,7 +2092,7 @@ serialize_impl(pysqlite_Connection *self, const char *name)
return NULL;
}
#if PY_SSIZE_T_MAX < 9223372036854775807
if (size > PY_SSIZE_T_MAX) {
if (size > INT_MAX) {
PyErr_Format(PyExc_OverflowError,
"serialized '%s' too large to convert to bytes", name);
return NULL;
Expand Down
0