mirror of
https://github.com/curl/curl.git
synced 2026-08-02 06:20:30 +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. Closes #20787
This commit is contained in:
parent
fa13f373b2
commit
77ed315096
22 changed files with 218 additions and 11 deletions
|
|
@ -2991,7 +2991,8 @@ typedef enum {
|
|||
CURLINFO_EARLYDATA_SENT_T = CURLINFO_OFF_T + 68,
|
||||
CURLINFO_HTTPAUTH_USED = CURLINFO_LONG + 69,
|
||||
CURLINFO_PROXYAUTH_USED = CURLINFO_LONG + 70,
|
||||
CURLINFO_LASTONE = 70
|
||||
CURLINFO_SIZE_DELIVERED = CURLINFO_OFF_T + 71,
|
||||
CURLINFO_LASTONE = 71
|
||||
} CURLINFO;
|
||||
|
||||
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue