[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>
Sat, 17 Aug 2024 17:06:29 +0000 (14:06 -0300)
commit702993e73fef659629bd96ec6b92b5343f6b3c0c
treed84c572ba16078d4f628e2737989551a5874b012
parenta680eaf87af24d80d62f33369f1e57c33d3fe9d2
[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