-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
PEG parser segfault from ast.literal_eval #90497
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
Comments
cpython/b$ ./python
Python 3.11.0a3+ (heads/main-dirty:081a214008, Jan 11 2022, 02:48:22) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ast
>>> ast.literal_eval('''F"""
...
...
... {6
... 0="""''')
Segmentation fault this was discovered by oss-fuzz. This may be a recent regression? It didn't happen on my build from a few weeks ago. worth testing on older versions. |
I tested it on 3.10.1 and it didn't segfault on Windows 11 so seems like 3.11 regression. |
Seems that the regression is caused by this commit: 6fa8b2c is the first bad commit
Lib/test/test_exceptions.py | 12 ++++++++++++ |
The reason is that the line numbers are now correctly identified, and that causes existing code to not work correctly :( |
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: