]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120155: Add assertion to sre.c match_getindex() (GH-120402) (#120409)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Jun 2024 14:07:36 +0000 (16:07 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2024 14:07:36 +0000 (14:07 +0000)
commite04809299fc1a5f0ff0b567173439cb0b6f8e907
tree88ec3fa391e54989ea43dff0cccf7798d76939bf
parent91c4444d22a36119c83c9a21bfe0efe39d745086
[3.13] gh-120155: Add assertion to sre.c match_getindex() (GH-120402) (#120409)

gh-120155: Add assertion to sre.c match_getindex() (GH-120402)

Add an assertion to help static analyzers to detect that i*2 cannot
overflow.
(cherry picked from commit 42b25dd61ff3593795c4cc2ffe876ab766098b24)

Co-authored-by: Victor Stinner <vstinner@python.org>
Modules/_sre/sre.c