]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-106524: Fix a crash in _sre.template() (GH-106525)
authorRadislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Sat, 8 Jul 2023 07:47:01 +0000 (10:47 +0300)
committerGitHub <noreply@github.com>
Sat, 8 Jul 2023 07:47:01 +0000 (10:47 +0300)
commit2ef1dc37f02b08536b677dd23ec51541a60effd7
treee86725b69ca4d321cb5ccc1397df5ca29a5195fc
parent1c9e4934621627fbbfeada8d9dd87ecba4e446b0
gh-106524: Fix a crash in _sre.template() (GH-106525)

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.
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