cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: SMTP, data corruption and dot stuffing

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 20 Oct 2011 00:18:55 +0200 (CEST)

On Wed, 19 Oct 2011, Daniel Stenberg wrote:

> The bug is due to Curl_smtp_escape_eob() being too stupid. I'm working on
> it.

I believe I made it work properly with the attached patch. I remade the entire
escaping logic in Curl_smtp_escape_eob() since turned out it was just broken
when the end-of-body string occurred over buffer boundaries.

The SMTP test cases also run through OK with this patch for me.

Comments?

-- 
  / daniel.haxx.se


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2011-10-20