]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-110590: Fix a bug where _sre.compile would overwrite exceptions (#110591)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 10 Oct 2023 10:15:12 +0000 (13:15 +0300)
committerGitHub <noreply@github.com>
Tue, 10 Oct 2023 10:15:12 +0000 (10:15 +0000)
commit344d3a222a7864f8157773749bdd77d1c9dfc1e6
treedf48ad12a6ebd272c12be11e7463966098ad4c48
parent0362cbf908aff2b87298f8a9422e7b368f890071
gh-110590: Fix a bug where _sre.compile would overwrite exceptions (#110591)

TypeError would be overwritten by OverflowError
if 'code' param contained non-ints.
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-10-10-10-46-55.gh-issue-110590.fatz-h.rst [new file with mode: 0644]
Modules/_sre/sre.c