]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.11] 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:48:07 +0000 (12:48 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Oct 2023 10:48:07 +0000 (10:48 +0000)
commit7fefed091ad2be083d353446c0631d2739cb0ead
tree5758f99f387724602977d84c63ded623e5de5b22
parent194272179dc2cbe67358fc0ebde73dea90bc5a1b
[3.11] gh-110590: Fix a bug where _sre.compile would overwrite exceptions (GH-110591) (#110614)

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