◐ Shell
clean mode source ↗

A long string in ast.parse() leads to a segfault

ast.parse() takes a long string as the argument leading to a segfault.

test.py

import ast
x = ast.parse('+chr(33)'*1000000)

Crash message: Segmentation fault (core dumped)

Environment:
Ubuntu 18.04
rustpython v0.2.0