]> git.ipfire.org Git - thirdparty/curl.git/commit
http: use per-request counter to check too large headers
authorDaniel Stenberg <daniel@haxx.se>
Sat, 16 Sep 2023 21:54:44 +0000 (23:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Sep 2023 20:57:01 +0000 (22:57 +0200)
commit2cb0d346aaacbe8aae7ba19f42190d802a038972
tree9904fe33f3ca4e4d1c0bd880f6813612d962f2d7
parent68ee7f8b7e5e80a220041ef2575a784d0c8931d3
http: use per-request counter to check too large headers

Not the counter that accumulates all headers over all redirects.

Follow-up to 3ee79c1674fd6

Do a second check for 20 times the limit for the accumulated size for
all headers.

Fixes #11871
Reported-by: Joshix-1 on github
Closes #11872
lib/http.c
lib/urldata.h