Home - Waterfall Grid T-Grid Console Builders Recent Builds Buildslaves Changesources - JSON API - About

Change #246526

Category curl
Changed by Stefan Eissing <stefanohnoyoudont@eissing.org>
Changed at Thu 23 Oct 2025 13:03:10
Repository https://github.com/curl/curl.git
Project curl
Branch master
Revision a330117bb05f6b68f066a748177bfba13c4da35b

Comments

smtp: fix EOB handling
SMTP automatically appends a \n.\n to an upload if there is not already
one at the end of the input. The implementation had a bug where this did
not happen, depending on read size and buffering.

Change test 900 to reproduce the failure. The bug only happened for mail
body input of known length, where EOS was known on the last chunk read.
Change test 900 to use an input file and make it large enough.

Fixes #18798
Closes #19193
Reported-by: madoe on github

Changed files