New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provoking infinite scanner loops #36890
Comments
From c.l.py: """ Newly added function sre.finditer and see:
The semantics of the underlying calliterobject aren't But regardless of how that's resolved, it's easy to >>> import re
>>> s = re.compile(r'\s').scanner
>>> t = s('a b').search
>>> t()
<_sre.SRE_Match object at 0x00679F70>
>>> t()
>>> t()
>>> t() and there it's hung. |
Logged In: YES Oops -- I meant I raised the calliterobject issue on Python- |
Logged In: YES Fixed in the following CVS revisions: Misc/NEWS: 1.515->1.516 Thank you, Tim! |
Logged In: YES This fix needs backporting to the release-maint22 branch |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: