Gerd v. Egidy writes:
a received header looking like this
Received: from code ([20.191.144.116])
by
currently causes fetchmail 6.2.5 to segfault when in multidrop/received mode.
Looks like there is a check for \0 missing in parse_received, the
attached patch fixes this.
(Committer's note: the sample looks incomplete but anyways the patch
makes sense to me.)
svn path=/trunk/; revision=3941
for (sp = ok + 2; isspace((unsigned char)*sp); sp++)
continue;
tp = rbuf;
- for (; !isspace((unsigned char)*sp); sp++)
+ for (; *sp && !isspace((unsigned char)*sp); sp++)
RBUF_WRITE(*sp);
*tp = '\0';