CVE-2020-28013: Heap buffer overflow in parse_fix_phrase()
[exim.git] / src / src / parse.c
index 3f1ba222f170a4c56ad4738403ac4e12a49e2ae9..32b42cd29771e81d50fd450bc9eab4af6c672195 100644 (file)
@@ -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;