PATCH: properly handle corner case in some multipart MIME messages

Leandro Santi
Thu Feb 6 01:37:43 UTC 2003


I think I've found a problem in dcclib/ckbody.c; some messages (actually very
few I think) aren't being checksummed properly. For example,

<<<<<<<<< example start
Received: from (HELO fievel) (fievelargentino@ with login)
  by with SMTP; 12 Jul 2002 06:00:06 -0000
... (removed some headers) ...
MIME-Version: 1.0
Content-Type: multipart/alternative;

This is a multi-part message in MIME format.

... (removed irrelevant message content) ...


Do You Yahoo!?
Get your free address at

<<<<<<<<< example end

Now, as soon as the state machine finds the final boundary separator, bp
will point to '\n' and bstart one byte past. The big while{} loop ends and
the final ck_body_sub() call will erroneously checksum 1 byte of information.



ps: dcc{1,2,3,4} are almost at 1.1.24, I'll upgrade them soon.

More information about the DCC mailing list

Contact by mail or use the form.