]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: fix risk of BUG_ON() crash with glitch on unknown frame
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 19 Oct 2026 12:01:12 +0000 (14:01 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Oct 2026 08:51:47 +0000 (10:51 +0200)
commit745b120866151add3a56d310535984e5da4aefcc
tree9c9548c95140a905668c32efc3c068ca31c7545c
parent8eb164e14d340fa5a709f53b5d5d1e003ba68d2e
BUG/MINOR: h3: fix risk of BUG_ON() crash with glitch on unknown frame

The following patch extend parsing for HTTP/3 unknown frame type with
FIN set to ensure that closure is notified to the upper layer.

  fe1da6850ab3e89e242c1d8d53ef17a1ba1dee6b
  BUG/MINOR: h3: handle unknown frame type on request stream as specified

The first objective is to report a stream error if the stream is closed
without any request seen. However, this case does not prevent to report
an HTX EOM which is unnecessary. Worst, it could cause a crash if EOM
fails due to an internal error, as qcc_set_error() could be called a
second times after glitch reporting.

Fix both issues by interrupting parsing as soon as the stream level
error is set.

This must be backported up to 3.0.
src/h3.c