cpython/Modules/_sqlite
Miss Islington (bot) cde02ae782
[3.14] gh-139283: correctly handle size limit in cursor.fetchmany() (GH-139296) (GH-139441)
Passing a negative or zero size to `cursor.fetchmany()` made it fetch all rows
instead of none.

While this could be considered a security vulnerability, it was decided to treat
this issue as a regular bug as passing a non-sanitized *size* value in the first
place is not recommended.
(cherry picked from commit bc172ee830)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
2025-10-07 21:23:08 +02:00
..
clinic [3.14] gh-139283: correctly handle size limit in cursor.fetchmany() (GH-139296) (GH-139441) 2025-10-07 21:23:08 +02:00
blob.c [3.14] gh-135607: remove null checking of weakref list in dealloc of extension modules and objects (#135614) (#136119) 2025-06-30 15:59:22 +02:00
blob.h gh-69093: Support basic incremental I/O to blobs in sqlite3 (GH-30680) 2022-04-14 17:02:56 -07:00
connection.c [3.14] gh-138736: Fix sqlite3.Connection.blobopen 'row' parameter type and naming (#138738) (GH-139062) 2025-10-07 20:38:26 +02:00
connection.h gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
cursor.c [3.14] gh-139283: correctly handle size limit in cursor.fetchmany() (GH-139296) (GH-139441) 2025-10-07 21:23:08 +02:00
cursor.h [3.14] gh-139283: correctly handle size limit in cursor.fetchmany() (GH-139296) (GH-139441) 2025-10-07 21:23:08 +02:00
microprotocols.c gh-111789: Simplify the sqlite code (GH-111829) 2023-11-10 20:49:24 +00:00
microprotocols.h gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
module.c gh-111178: fix UBSan failures in Modules/_sqlite (GH-129087) 2025-01-31 14:33:30 +01:00
module.h gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
prepare_protocol.c gh-111178: fix UBSan failures in Modules/_sqlite (GH-129087) 2025-01-31 14:33:30 +01:00
prepare_protocol.h Remove unused UNKNOWN macros from cursor.h and prepare_protocol.h (GH-27885) 2021-08-22 22:23:45 +09:00
row.c gh-129603: Don't segfault if sqlite3.Row description is None (#129604) 2025-02-10 00:27:28 +01:00
row.h gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
statement.c gh-129928: Rework sqlite3 error helpers (#129929) 2025-02-11 07:49:25 +00:00
statement.h gh-104922: remove PY_SSIZE_T_CLEAN (#106315) 2023-07-02 15:07:46 +09:00
util.c gh-129928: Rework sqlite3 error helpers (#129929) 2025-02-11 07:49:25 +00:00
util.h gh-129928: Rework sqlite3 error helpers (#129929) 2025-02-11 07:49:25 +00:00