cURL / Mailing Lists / curl-library / Single Mail

curl-library

[ curl-Bugs-1078097 ] failed chunked transfer can incorrectly succeed.

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Thu, 02 Dec 2004 19:01:56 -0800

Bugs item #1078097, was opened at 2004-12-02 19:01
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1078097&group_id=976

Category: http
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: failed chunked transfer can incorrectly succeed.

Initial Comment:
mail: mbarnum_at_tivo.com

[note: this was true in curl 7.12.0 and appears to still be
the case in cvs as of version 1.259 of lib/transfer.c]

if the connection to the remote host closes after one
chunk has been processed and before any more data is
read, curl will consider the transfer to have succeeded
because it checks for conn->proto.http->chunk.datasize
to be zero. this field is decremented as the chunk
is processed, leading to the bug.

fix attached.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1078097&group_id=976
Received on 2004-12-03