diff options
author | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2021-03-29 22:44:47 +0200 |
---|---|---|
committer | Heiko Schlittermann (HS12-RIPE) <hs@schlittermann.de> | 2021-05-27 21:30:47 +0200 |
commit | 5e4fd0533c99c75cb27137ab469e2ce1e3efaf72 (patch) | |
tree | f0f96fea1fb212dce19297a1f3079f1f827f8fdb /src | |
parent | a06ffc5a1b1a49e0e8cd6522ce5a005948333458 (diff) |
CVE-2020-28013: Heap buffer overflow in parse_fix_phrase()
Based on Phil Pennock's 8a50c88a, done by Qualys
(cherry picked from commit 8161c16ec7320ac6164954bade23179a0ed095eb)
(cherry picked from commit 71585e8fcb8704a9f431f5a8d019280cccaad069)
Diffstat (limited to 'src')
-rw-r--r-- | src/src/parse.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/src/parse.c b/src/src/parse.c index cfc1f996f..e0470c86f 100644 --- a/src/src/parse.c +++ b/src/src/parse.c @@ -1134,12 +1134,7 @@ while (s < end) { if (ss >= end) ss--; *t++ = '('; - if (ss < s) - { - /* Someone has ended the string with "<punct>(". */ - ss = s; - } - else + if (ss > s) { Ustrncpy(t, s, ss-s); t += ss-s; |