]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: h3: fix BUG_ON() crash with glitch on SETTINGS parsing
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 19 Oct 2026 11:12:59 +0000 (13:12 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Oct 2026 08:51:47 +0000 (10:51 +0200)
commit15d9a2f32f89125859a819b99873cfb8f32ac096
tree250b57fe28a9e57d0e37da5f50680e7e76f5a69b
parent1edbb7b83d9b09ff4d6b0e37d951f237a9517810
BUG/MEDIUM: h3: fix BUG_ON() crash with glitch on SETTINGS parsing

There is a risk of BUG_ON() crash when glitch are reported via
qcc_report_glitch() before settings a connection-level error using
qcc_set_error(). This happens when reaching the glitch level with the
former function also calling qcc_set_error(). A BUG_ON() is triggered as
it must not be called multiple times per connection to prevent error
code erasure.

This patch fixes glitch reporting during SETTINGS frame parsing. Now,
qcc_report_glitch() is only called after qcc_set_error() on
h3_parse_settings_frm() return.

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