]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h1: use the right masks to test the accepted HTTP violations
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 14:12:46 +0000 (15:12 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2026 13:53:05 +0000 (14:53 +0100)
commit4c4b337794a6ad0a57ab4f15d0a4ec6aae00a143
treea6f8c23cf699f83bd8e60f5d4a3b62c87a9621cf
parenta7133aa892292c5271b04da59bbdb191d97d9876
BUG/MINOR: h1: use the right masks to test the accepted HTTP violations

Two tests of the accepted HTTP violations were wrong. In
h1_headers_to_hdr_list(), HTTP_VIO_HDR_VALUE_NUL was used as a mask
instead of a bit position. So the NUL character in a header value was
accepted or rejected depending on the "fragment-in-url" and the
"status-code-long" violations. And in h1_process_res_vsn(), the
response version string was checked against the acceptable request
violations instead of the response ones.

This patch must be backported to 3.5.
src/h1.c
src/h1_htx.c