]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: reject frames with truncated header
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Sep 2026 16:06:02 +0000 (18:06 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 7 Oct 2026 08:41:18 +0000 (10:41 +0200)
commit95dd2448b185309edfe2d3918cc9c91b159ae2a5
tree05b2832c94686148c63860f83bfe01c1efb945d5
parent9d2af5174bc8b01e3c4b7b7604d75873ff4bc0e3
BUG/MINOR: h3: reject frames with truncated header

The following patch ensures that H3 frames with a truncated payload are
now properly rejected with H3_FRAME_ERROR.

  86a4ebc761a278838e8cb06f3a292282ba704c65
  BUG/MAJOR: h3: reject H3 truncated frames

However, this fix is not complete as it did not detect H3 frame
truncated at the header boundary. This happens when one of the two
fields varint cannot be decoded and FIN is reported as well.

This patch corrects this by reporting a connection error H3_FRAME_ERROR
in this condition. This allows to quickly teardown the connection
instead of waiting for the stream timeout without any error.

This must be backported to all stable releases.
src/h3.c