[issue44396] pegen _PyParser_ASTFromFile(): Use-After-Free in syntaxerror()
Guido van Rossum
report at bugs.python.org
Fri Jun 11 11:44:02 EDT 2021
Guido van Rossum <guido at python.org> added the comment:
Lysandros and Pablo, this *only* occurs when the lexer is reading directly from a file, not when it's reading the same source code from a (bytes) string. All examples are syntax errors (some raise ValueError in the parser).
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44396>
_______________________________________
More information about the Python-bugs-list
mailing list