mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:33:32 +03:00
cookies: reject oversized cookies
... instead of truncating them. There's no fixed limit for acceptable cookie names in RFC 6265, but the entire cookie is said to be less than 4096 bytes (section 6.1). This is also what browsers seem to implement. We now allow max 5000 bytes cookie header. Max 4095 bytes length per cookie name and value. Name + value together may not exceed 4096 bytes. Added test 1151 to verify Bug: https://curl.haxx.se/mail/lib-2017-09/0062.html Reported-by: Kevin Smith Closes #1894
This commit is contained in:
parent
1a072796d3
commit
2bc230de63
5 changed files with 96 additions and 14 deletions
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue