]> git.kaiwu.me - haproxy.git/commit
MINOR: h3: reject malformed push frames
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 16 Nov 2026 08:52:34 +0000 (09:52 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 16 Nov 2026 14:06:54 +0000 (15:06 +0100)
commit3199d13830badb0eca8d935fc038d2434c985eb5
treee47ba717da663c3e89bf32b1378558c152b830f0
parent2062962dfd685f2dcf2610b062a1419d97a59535
MINOR: h3: reject malformed push frames

MAX_PUSH_ID frames are ignored by haproxy, which does not support server
push and therefore never opens push streams. However, a legitimate
client may still emit such frames.

Implement minimal parsing via a new dedicated helper
h3_parse_push_frm(). If the frame is malformed, the connection is
immediately closed on error.

The same helper is also used for CANCEL_PUSH frames, although it is even
less useful here these frames are systematically rejected even if
well-formed because haproxy never initiates or allows push streams.
src/h3.c