]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-h1: Dup connection/upgrade value to parse it when making headers
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 29 May 2026 14:26:29 +0000 (16:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 1 Jun 2026 07:59:33 +0000 (09:59 +0200)
commitde25313cd8c58f120d52ddb57a26fff5ca4951c6
tree294dd69ad5e2e64736bc2baf5a44695a9547f67d
parentf1aac4a3b28d9c7b94215066da82e448d55288b6
BUG/MEDIUM: mux-h1: Dup connection/upgrade value to parse it when making headers

When message headers are formatted, the connection and upgrade header values
are parsed to be sanitized and to fill H1M flags. The values are modified in
place without changing the HTX message information accordingly (the block
info and the HTX info). It could be an issue if the output buffer is full
and the header cannot be formatted. Because the formatting can be stopped
with a HTX message in hazardous state.

It should be quite difficult to trigger this issue. But now, a copy of the
value is performed before parsing it. So only the copy will be altered,
leaving the HTX message in a safe state.

This patch must be backported to all stable versions.
src/mux_h1.c