[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)
committerSamuel Henrique <samueloph@debian.org>
Sun, 9 Mar 2025 10:45:45 +0000 (10:45 +0000)
commit50898897cb19dbba7bd2de9679c3b6d03cf46107
tree95abad0c30a70bd418a32b9194c4dd46f655d852
parent42672c178deda4d8add324a9429670baf096070c
[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