]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-120155: Add assertion to sre.c match_getindex() (GH-120402) (#120410)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 12 Jun 2024 13:57:45 +0000 (15:57 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2024 13:57:45 +0000 (13:57 +0000)
commitab309343655a668863e6fcec9de4cfd428ba0392
treebe604c12fc3f1b20367885dd70fe5f0f9a8f2b4c
parente8a9f0c9e76ef07f1294c06634694d799217062a
[3.12] gh-120155: Add assertion to sre.c match_getindex() (GH-120402) (#120410)

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