mirror of
https://github.com/curl/curl.git
synced 2026-07-23 18:37:17 +03:00
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.
This commit is contained in:
parent
b1fa80b84f
commit
d836c9fee4
2 changed files with 11 additions and 1 deletions
|
|
@ -37,7 +37,8 @@ This is just treated as a request, not an order. You cannot be guaranteed to
|
|||
actually get the given size.
|
||||
|
||||
This buffer size is by default \fICURL_MAX_WRITE_SIZE\fP (16kB). The maximum
|
||||
buffer size allowed to set is \fICURL_MAX_READ_SIZE\fP (512kB).
|
||||
buffer size allowed to be set is \fICURL_MAX_READ_SIZE\fP (512kB). The minimum
|
||||
buffer size allowed to be set is 1024.
|
||||
.SH DEFAULT
|
||||
CURL_MAX_WRITE_SIZE (16kB)
|
||||
.SH PROTOCOLS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue