]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: h2: forbid 'Z' as well in header field names checks
authorzhanhb <6323014+zhanhb@users.noreply.github.com>
Sat, 27 Sep 2025 15:01:32 +0000 (23:01 +0800)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Oct 2025 13:29:58 +0000 (15:29 +0200)
commit7163d9180cb319db087221a683c0f2d02ffbf0be
tree85ba8ed2c7b06b627716a423e745b13ff4f8926a
parent06675db4bf234ed17e14305f1d59259d2fe78b06
BUG/MINOR: h2: forbid 'Z' as well in header field names checks

The current tests in h2_make_htx_request(), h2_make_htx_response()
and h2_make_htx_trailers() check for an interval between 'A' and 'Z'
for letters in header field names that should be forbidden, but
mistakenly leave the 'Z' out of the forbidden range, resulting in it
being implicitly valid.

This has no real consequences but should be fixed for the sake of
protocol validity checking.

This must be backported to all relevant versions.
src/h2.c