extmod/modure: Add stack overflow checking when executing a regex.

This commit is contained in:
Paul Sokolovsky 2017-10-03 00:12:06 +03:00
parent c9a0b2a818
commit aba1f9167a
1 changed files with 3 additions and 0 deletions

View File

@ -32,9 +32,12 @@
#include "py/runtime.h"
#include "py/binary.h"
#include "py/objstr.h"
#include "py/stackctrl.h"
#if MICROPY_PY_URE
#define re1_5_stack_chk() MP_STACK_CHECK()
#include "re1.5/re1.5.h"
#define FLAG_DEBUG 0x1000