]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:07:32 +0000 (16:07 +0200)
committerGitHub <noreply@github.com>
Thu, 4 Jun 2026 14:07:32 +0000 (14:07 +0000)
commit62f4782fc2589f1c0dcaa9ef7144ead96eb90f00
treee8cd913c9585f3c118fcb25c02960f0c0c330da9
parent2d3d11c14d0eca6da0addb9aed5a327682f582a8
[3.14] gh-150913: Fix sqlite3.Blob validation for empty slice assignment (GH-150915) (GH-150924)

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