]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-110590: Fix a bug where _sre.compile would overwrite exceptions (GH-110591...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Oct 2023 10:55:21 +0000 (12:55 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Oct 2023 10:55:21 +0000 (10:55 +0000)
commitc1e8e90915e38604175e20e36a24fe45249cdc33
tree4c9afd5aadf26c4887092ce7be9825a8c3e3a252
parent55d607683f85367e503ee34b85bc3b9c1a782552
[3.12] gh-110590: Fix a bug where _sre.compile would overwrite exceptions (GH-110591) (#110613)

TypeError would be overwritten by OverflowError
if 'code' param contained non-ints.
(cherry picked from commit 344d3a222a7864f8157773749bdd77d1c9dfc1e6)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
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