]> granicus.if.org Git - curl/commit
smtp: Fixed dot stuffing when EOL characters were at end of input buffers
authorSteve Holme <steve_holme@hotmail.com>
Fri, 12 Dec 2014 18:37:06 +0000 (18:37 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Fri, 12 Dec 2014 19:15:08 +0000 (19:15 +0000)
commitf0ecdd04d3cd3c8814a296c3a9d2211086b7abd8
treea1bb00a7c1cb804254aabc74beb4316ad3f8c01f
parent2f5c70b2b0f0fbdc1d0afcc2e148bc3e167ac6c7
smtp: Fixed dot stuffing when EOL characters were at end of input buffers

Fixed a problem with the CRLF. detection when multiple buffers were
used to upload an email to libcurl and the line ending character(s)
appeared at the end of each buffer. This meant any lines which started
with . would not be escaped into .. and could be interpreted as the end
of transmission string instead.

This only affected libcurl based applications that used a read function
and wasn't reproducible with the curl command-line tool.

Bug: http://curl.haxx.se/bug/view.cgi?id=1456
Assisted-by: Patrick Monnerat
lib/smtp.c