]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h2: Don't look at the exclusive bit for PRIORITY frame
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 22 Apr 2026 16:52:35 +0000 (18:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Apr 2026 06:09:48 +0000 (08:09 +0200)
commit0963070d4f5114a56ab9c71274f8d4c9e341412d
treef6fa3fbc5e0d8dfd6e8a60c2b46c8512dd4a2e00
parent915a58c3c1f1967e52867f87a018d5cc0fabe8de
BUG/MINOR: h2: Don't look at the exclusive bit for PRIORITY frame

When receiving a PRIORITY frame, when checking if the stream id provided
is ours, ignore bit 31, as it is the exclusive bit, and not part of the
stream id, whoever sends a PRIORITY frame with its own id and the
exclusive bit set will not be considered an error, as it should per the
RFC.

The impact is basically non-existent since we don't use PRIORITY frames,
it's only that we would ignore such an invalid frame instead of breaking
the connection.

The bug was introduced in 1.9 with commit 92153fccd3 ("BUG/MINOR: h2:
properly check PRIORITY frames") so the fix must be backported to all
versions.
src/mux_h2.c