Skip to content

Commit

Permalink
lib: onigmo: fix OSS-FUZZ 46086
Browse files Browse the repository at this point in the history
Temporary fix until k-takata/Onigmo#165 is merged
Signed-off-by: sashashura <[email protected]>
  • Loading branch information
sashashura committed Sep 5, 2022
1 parent 73b69eb commit f3ef62b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/onigmo/regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,9 @@ compile_string_node(Node* node, regex_t* reg)
}
else {
r = add_compile_string(prev, prev_len, blen, reg, ambig);
if (p + len > end) {
return 0;
}
if (r) return r;

prev = p;
Expand Down

0 comments on commit f3ef62b

Please sign in to comment.