Skip to content

Commit

Permalink
fix heap-buffer-overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
K.Kosako committed Aug 13, 2019
1 parent fdbbb88 commit d3e4029
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/regexec.c
Expand Up @@ -4196,6 +4196,7 @@ str_lower_case_match(OnigEncoding enc, int case_fold_flag,
lowlen = ONIGENC_MBC_CASE_FOLD(enc, case_fold_flag, &p, end, lowbuf);
q = lowbuf;
while (lowlen > 0) {
if (t >= tend) return 0;
if (*t++ != *q++) return 0;
lowlen--;
}
Expand Down

0 comments on commit d3e4029

Please sign in to comment.