Skip to content

Commit

Permalink
#207: Another Out-of-bounds write
Browse files Browse the repository at this point in the history
  • Loading branch information
kkos committed Oct 1, 2020
1 parent 4d5b01d commit 8155473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/regcomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -6231,7 +6231,7 @@ concat_opt_exact(OptStr* to, OptStr* add, OnigEncoding enc)
end = p + add->len;
for (i = to->len; p < end; ) {
len = enclen(enc, p);
if (i + len > OPT_EXACT_MAXLEN) {
if (i + len >= OPT_EXACT_MAXLEN) {
r = 1; /* 1:full */
break;
}
Expand Down

0 comments on commit 8155473

Please sign in to comment.