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

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