]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-106524: Fix a crash in _sre.template() (GH-106525) (GH-106544)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Jul 2023 08:12:33 +0000 (01:12 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2023 08:12:33 +0000 (08:12 +0000)
commit8fdb0587935b66c3942c1740ab5e387b2ea415bb
tree0dc658182f74225d130ad393eb4d29d357b141f1
parent2ade2fc148fb25a0306d5b14f705396d98c8b926
[3.12] gh-106524: Fix a crash in _sre.template() (GH-106525) (GH-106544)

Some items remained uninitialized if _sre.template() was called with invalid
indices. Then attempt to clear them in the destructor led to dereferencing
of uninitialized pointer.
(cherry picked from commit 2ef1dc37f02b08536b677dd23ec51541a60effd7)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-07-07-17-44-03.gh-issue-106524.XkBV8h.rst [new file with mode: 0644]
Modules/_sre/sre.c