mirror of
https://github.com/curl/curl.git
synced 2026-07-29 00:03:12 +03:00
progress: count amount of data "delivered" to application
... and apply the CURLOPT_MAXFILESIZE limit (if set) on that as well. This effectively protects the user against "zip bombs". Test case 1618 verifies using a 14 byte brotli payload that otherwise explodes to 102400 zero bytes.
This commit is contained in:
parent
7fe5b933d8
commit
f6fce4f5ab
6 changed files with 90 additions and 6 deletions
|
|
@ -50,7 +50,7 @@ int Curl_pgrsDone(struct Curl_easy *data);
|
|||
void Curl_pgrsStartNow(struct Curl_easy *data);
|
||||
void Curl_pgrsSetDownloadSize(struct Curl_easy *data, curl_off_t size);
|
||||
void Curl_pgrsSetUploadSize(struct Curl_easy *data, curl_off_t size);
|
||||
|
||||
CURLcode Curl_pgrs_deliver_inc(struct Curl_easy *data, size_t delta);
|
||||
void Curl_pgrs_download_inc(struct Curl_easy *data, size_t delta);
|
||||
void Curl_pgrs_upload_inc(struct Curl_easy *data, size_t delta);
|
||||
void Curl_pgrsSetUploadCounter(struct Curl_easy *data, curl_off_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue