lcompilers / lpython

Python compiler
https://lpython.org/
Other
1.37k stars 156 forks source link

Recursion depth limit is not set #2731

Open advikkabra opened 2 weeks ago

advikkabra commented 2 weeks ago

When there is a recursive function, since there is no recursive limit, it is possible for a stack overflow and a segmentation fault. Considering how CPython has a recursion limit, a similar limit could be added here.