]> git.ipfire.org Git - thirdparty/curl.git/commit
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)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Aug 2023 15:08:13 +0000 (17:08 +0200)
commit3ee79c1674fd6f99e8efca52cd7510e08b766770
tree35756ec8b3ecc3cd2ca663968922f561497e4a39
parent944e219f1033a9a54182c7d1114c9fcc72512fa9
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
lib/c-hyper.c
lib/cf-h1-proxy.c
lib/http.c
lib/http.h
lib/pingpong.c
lib/urldata.h