]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120155: Add assertion to sre.c match_getindex() (#120402)
authorVictor Stinner <vstinner@python.org>
Wed, 12 Jun 2024 13:27:07 +0000 (15:27 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2024 13:27:07 +0000 (15:27 +0200)
commit42b25dd61ff3593795c4cc2ffe876ab766098b24
tree8df0d71acd7cabcfe9b386119f0307194f6d4db9
parent4b1e85bafc5bcb8cb70bb17164e07aebf7ad7e8e
gh-120155: Add assertion to sre.c match_getindex() (#120402)

Add an assertion to help static analyzers to detect that i*2 cannot
overflow.
Modules/_sre/sre.c