Files
micropython/tests/extmod
Jeff Epler bd69a0ddef lib/re1.5: Check stack during compilecode.
Otherwise, a very deeply nested regular expression like

    re.compile("(" * 65536)

can exhaust the host stack during the compile phase. This turns
that into a `RuntimeError: maximum recursion depth exceeded`
instead.

This crash was found via fuzzing.

Signed-off-by: Jeff Epler <jepler@unpythonic.net>
2026-04-15 16:01:21 +10:00
..