Skip to content

Commit cf4dfac

Browse files
authored
Merge pull request #733 from tabudz/fix-cve-2020-26159
Fix: Potential Vulnerability in Cloned Function
2 parents 9dbe023 + 51a0125 commit cf4dfac

File tree

1 file changed

+1
-1
lines changed
  • MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma

1 file changed

+1
-1
lines changed

MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regcomp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5222,7 +5222,7 @@ concat_opt_exact_str(OptStr* to, UChar* s, UChar* end, OnigEncoding enc)
52225222

52235223
for (i = to->len, p = s; p < end && i < OPT_EXACT_MAXLEN; ) {
52245224
len = enclen(enc, p);
5225-
if (i + len > OPT_EXACT_MAXLEN) break;
5225+
if (i + len >= OPT_EXACT_MAXLEN) break;
52265226
for (j = 0; j < len && p < end; j++)
52275227
to->s[i++] = *p++;
52285228
}

0 commit comments

Comments
 (0)