]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-100061: Proper fix of the bug in the matching of possessive quantifiers...
authorSerhiy Storchaka <storchaka@gmail.com>
Wed, 16 Aug 2023 10:00:55 +0000 (13:00 +0300)
committerGitHub <noreply@github.com>
Wed, 16 Aug 2023 10:00:55 +0000 (12:00 +0200)
commitbd2ef82a5010985abdeef2ca71bcbcc9a366993b
tree8c8195fa20e743c40c6c6b0627f4e84384d5678e
parent00bfed7cba3f2d66a1534f9f088ddf68abbf0d3f
[3.12] gh-100061: Proper fix of the bug in the matching of possessive quantifiers (GH-102612) (#108003)

Restore the global Input Stream pointer after trying to match a sub-pattern.

.
(cherry picked from commit abd9cc52d94b8e2835322b62c29f09bb0e6fcfe9)

Co-authored-by: SKO <41810398+uyw4687@users.noreply.github.com>
Lib/re/_compiler.py
Lib/test/test_re.py
Misc/NEWS.d/next/Library/2023-03-14-01-19-57.gh-issue-100061.CiXJYn.rst [new file with mode: 0644]
Modules/_sre/sre_lib.h