diff options
author | Remi Collet <remi@remirepo.net> | 2020-10-01 09:33:50 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-10-01 09:33:50 +0200 |
commit | 5c6a3e83d5b7f881d4162d2c8a0959d61c1081bb (patch) | |
tree | 472e4b7f1b37daa5d29a5c03abe0431a864f2b3c /oniguruma-XXX-CVE-2020-26159.patch | |
parent | c3bc5c4028d49dc526f898aa123fc90646df3101 (diff) |
From Fedora: Apply upstream fix for CVE-2020-26159
Diffstat (limited to 'oniguruma-XXX-CVE-2020-26159.patch')
-rw-r--r-- | oniguruma-XXX-CVE-2020-26159.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/oniguruma-XXX-CVE-2020-26159.patch b/oniguruma-XXX-CVE-2020-26159.patch new file mode 100644 index 0000000..71a8ada --- /dev/null +++ b/oniguruma-XXX-CVE-2020-26159.patch @@ -0,0 +1,22 @@ +From cbe9f8bd9cfc6c3c87a60fbae58fa1a85db59df0 Mon Sep 17 00:00:00 2001 +From: "K.Kosako" <kkosako0@gmail.com> +Date: Mon, 21 Sep 2020 12:58:29 +0900 +Subject: [PATCH] #207: Out-of-bounds write + +--- + src/regcomp.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/regcomp.c b/src/regcomp.c +index f6494b6d..a0a68561 100644 +--- a/src/regcomp.c ++++ b/src/regcomp.c +@@ -6257,7 +6257,7 @@ concat_opt_exact_str(OptStr* to, UChar* s, UChar* end, OnigEncoding enc) + + for (i = to->len, p = s; p < end && i < OPT_EXACT_MAXLEN; ) { + len = enclen(enc, p); +- if (i + len > OPT_EXACT_MAXLEN) break; ++ if (i + len >= OPT_EXACT_MAXLEN) break; + for (j = 0; j < len && p < end; j++) + to->s[i++] = *p++; + } |