]> granicus.if.org Git - curl/commit
url.c: add a compile-time check that CURL_MAX_WRITE_SIZE is large enough
authorDan Fandrich <dan@coneharvesters.com>
Sat, 13 May 2017 20:54:59 +0000 (22:54 +0200)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 13 May 2017 21:21:27 +0000 (23:21 +0200)
commitd836c9fee4bbef249dc7bf281336fb41eb3b77c7
tree9cacfac0b0e7c044d1dabaf946ab3d0e9a1dbdb7
parentb1fa80b84facb94a667a6bfaa99476a161285b0d
url.c: add a compile-time check that CURL_MAX_WRITE_SIZE is large enough

Some code (e.g. Curl_fillreadbuffer) assumes that this buffer is not
exceedingly tiny and will break if it is. This same check is already
done at run time in the CURLOPT_BUFFERSIZE option.
docs/libcurl/opts/CURLOPT_BUFFERSIZE.3
lib/url.c