]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-140979: Fix off-by-one error in the RE code validator (GH-140984) (GH-141000)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Nov 2025 16:16:40 +0000 (17:16 +0100)
committerGitHub <noreply@github.com>
Tue, 4 Nov 2025 16:16:40 +0000 (18:16 +0200)
commitfd9be78f4e43b2467411a206b54d49aba2763a49
tree04467003123829839a626faa4e983157f848f594
parent551d68d8cfa2781d383c153f197f6046682cef21
[3.13] gh-140979: Fix off-by-one error in the RE code validator (GH-140984) (GH-141000)

It was too lenient and allowed MARK opcodes with too large value.
(cherry picked from commit 1326d2a808245e5f2de9e515460bab30556e8f05)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Modules/_sre/sre.c