]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-150913: Fix sqlite3.Blob validation for empty slice assignment (GH-150915...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 4 Jun 2026 14:10:30 +0000 (16:10 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2026 14:10:30 +0000 (14:10 +0000)
commitc6d64cc60df359a45522ded4fca9076837678836
tree9d5e645ef48cc480cf9bf2fa53b1e6b1bd015723
parent42a41cc69ff01239b2cc65f19fbe31417a176445
[3.15] gh-150913: Fix sqlite3.Blob validation for empty slice assignment (GH-150915) (GH-150923)

ass_subscript_slice() returned early when the computed slice length
was zero, bypassing validation performed for non-empty slices.
(cherry picked from commit fc9c4db1302f8be7527e70cf0938b629985a1d72)

Co-authored-by: Jiseok CHOI <jiseok.dev@gmail.com>
Lib/test/test_sqlite3/test_dbapi.py
Misc/NEWS.d/next/Library/2026-06-04-21-49-18.gh-issue-150913.EmptyBl.rst [new file with mode: 0644]
Modules/_sqlite/blob.c