curl-library
[ curl-Bugs-1078066 ] failed chunked transfer can incorrectly succeed.
Date: Thu, 02 Dec 2004 17:27:06 -0800
Bugs item #1078066, was opened at 2004-12-02 17:27
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=1078066&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=1078066&group_id=976
Received on 2004-12-03