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 authored Sep 7, 2022
1 parent dd8a18a commit b224664
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 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 b224664

Please sign in to comment.