[PATCH] http: return error when receiving too large header set
authorDaniel Stenberg <daniel@haxx.se>
Wed, 2 Aug 2023 21:34:48 +0000 (23:34 +0200)
committerCarlos Henrique Lima Melara <charlesmelara@riseup.net>
Fri, 15 Sep 2023 17:01:23 +0000 (18:01 +0100)
commit113f24877e56463587bf7b0ca644174dc303cd9f
tree29de7d2af689cb756efd7fa992220256813542c0
parent0862911742cde10d1af2c9df96ba855c79fd21ce
[PATCH] http: return error when receiving too large header set

To avoid abuse. The limit is set to 300 KB for the accumulated size of
all received HTTP headers for a single response. Incomplete research
suggests that Chrome uses a 256-300 KB limit, while Firefox allows up to
1MB.

Closes #11582

Backport to Debian by Carlos Henrique Lima Melara <charlesmelara@riseup.net>

Gbp-Pq: Name CVE-2023-38039.patch
lib/c-hyper.c
lib/http.c
lib/http.h
lib/http_proxy.c
lib/pingpong.c
lib/urldata.h