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