git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CVE-2020-28013: Heap buffer overflow in parse_fix_phrase()
[exim.git]
/
src
/
src
/
parse.c
diff --git
a/src/src/parse.c
b/src/src/parse.c
index 3f1ba222f170a4c56ad4738403ac4e12a49e2ae9..32b42cd29771e81d50fd450bc9eab4af6c672195 100644
(file)
--- a/
src/src/parse.c
+++ b/
src/src/parse.c
@@
-1129,12
+1129,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;