git://git.exim.org
/
users
/
jgh
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Harden string-list handling
[users/jgh/exim.git]
/
src
/
src
/
string.c
diff --git
a/src/src/string.c
b/src/src/string.c
index 332047460de282a3f0c68d20c577482ec2c981e3..2441f9b17a4c66df5783b166bf96f814556845c4 100644
(file)
--- a/
src/src/string.c
+++ b/
src/src/string.c
@@
-921,7
+921,7
@@
if (sep <= 0)
if (*s == '<' && (ispunct(s[1]) || iscntrl(s[1])))
{
sep = s[1];
-
s += 2
;
+
if (*++s) ++s
;
while (isspace(*s) && *s != sep) s++;
}
else