Skip to content

Commit aba1f91

Browse files
committed
extmod/modure: Add stack overflow checking when executing a regex.
1 parent c9a0b2a commit aba1f91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extmod/modure.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@
3232
#include "py/runtime.h"
3333
#include "py/binary.h"
3434
#include "py/objstr.h"
35+
#include "py/stackctrl.h"
3536

3637
#if MICROPY_PY_URE
3738

39+
#define re1_5_stack_chk() MP_STACK_CHECK()
40+
3841
#include "re1.5/re1.5.h"
3942

4043
#define FLAG_DEBUG 0x1000

0 commit comments

Comments
 (0)