micropython/lib/re1.5
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
..
charclass.c lib/re1.5: Add support for named classes in class sets. 2023-01-18 09:15:32 +11:00
compilecode.c lib/re1.5: Check stack during compilecode. 2026-04-15 16:01:21 +10:00
dumpcode.c lib/re1.5: Move re1.5 code from extmod to lib. 2021-07-12 16:36:26 +10:00
re1.5.h lib/re1.5: Add support for named classes in class sets. 2023-01-18 09:15:32 +11:00
recursiveloop.c lib/re1.5: Distinguish between subject start-of-line and start-of-srch. 2022-03-16 12:21:00 +11:00