]> git.ipfire.org Git - thirdparty/curl.git/commit
sendf: client reader line conversion: do not change data->state.infilesize
authorStefan Eissing <stefan@eissing.org>
Wed, 12 Mar 2025 10:31:21 +0000 (11:31 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 Mar 2025 13:33:28 +0000 (14:33 +0100)
commit3c9a1d3fcf14442a6a71651e3bd49a580abdd8fe
tree8c6a4d5a1c35f518978aaa342e8cf3e33b7bceaf
parentfdd97148e86598c13ec0ebdc06e55101b357d866
sendf: client reader line conversion: do not change data->state.infilesize

The line conversion reader, added in crfl and prefer_ascii mode was
incrementing data->state.infilesize for every line end converted. This
results in the wrong size to start a retry of an upload.

Eliminate the increment and check upload size in FTP less precise when
conversions are done.

Bug: https://issues.oss-fuzz.com/issues/402476456

Closes #16683
lib/ftp.c
lib/sendf.c