Skip to content

Commit c9a0b2a

Browse files
committed
extmod/re1.5: Upgrade to v0.8.2, adds hook for stack overflow checking.
1 parent 2f7827b commit c9a0b2a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

extmod/re1.5/re1.5.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ void printre(Regexp*);
4848
#ifndef re1_5_fatal
4949
void re1_5_fatal(char*);
5050
#endif
51+
#ifndef re1_5_stack_chk
52+
#define re1_5_stack_chk()
53+
#endif
5154
void *mal(int);
5255

5356
struct Prog

extmod/re1.5/recursiveloop.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ recursiveloop(char *pc, const char *sp, Subject *input, const char **subp, int n
99
{
1010
const char *old;
1111
int off;
12-
12+
13+
re1_5_stack_chk();
14+
1315
for(;;) {
1416
if(inst_is_consumer(*pc)) {
1517
// If we need to match a character, but there's none left, it's fail

0 commit comments

Comments
 (0)