cURL / Mailing Lists / curl-library / Single Mail



From: Dan Fandrich <>
Date: Wed, 19 Oct 2011 13:30:55 -0700

Test 46 fails when building curl in debug mode with CURL_MAX_WRITE_SIZE
set to a low value (like 400), as can be seen on this autobuild:
The issue is the write size sanity check that's performed in debug mode in
tool_write_cb. If the amount of data to be written is larger than
CURL_MAX_WRITE_SIZE, that function returns with an error.

Test 46 has a large, 5 KB cookie, that's written in one call, which exceeds
a small CURL_MAX_WRITE_SIZE and therefore causes a test failure. I see
a couple of solutions: 1) fix libcurl to split large header writes
into CURL_MAX_WRITE_SIZE chunks, or 2) say that CURL_MAX_WRITE_SIZE
only refers to the maximum size of data blocks and that header blocks
can be larger, and remove that size check from the curl tool entirely
(or just demote it to a warning).

>>> Dan
List admin:
Received on 2011-10-19