[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>
Thu, 5 Oct 2023 21:31:47 +0000 (22:31 +0100)
commit60f2c0a1641403e591f6a5fd9b26b12818c5190d
tree3b12c5f3fe8750d64e00250408bad0c3985d4941
parenta2bc9ac716121bc53cbb2d7134d49110448d0b38
[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