]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: h3: fix crash with maxrewrite on response headers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Oct 2026 12:18:32 +0000 (14:18 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Oct 2026 12:39:35 +0000 (14:39 +0200)
commit01894641e9b2008c7d7676e3391bc41be767ef20
tree3b7bf36936367c0800cd3bef0a2733558f02f686
parentb5b5c7521689288fd40547d65f95871865e78a7f
BUG/MINOR: h3: fix crash with maxrewrite on response headers

This patch is similar to the previous one. This time it enforces HTTP
headers maxrewrite setting on responses parsing from the server to the
client. Thus, this change is related to the backend side handling.

As a side effect, it also prevents a BUG_ON() crash on
qcs_http_rcv_buf(). Indeed, maxrewrite is also used by the stream layer
to reduce the destination buffer. Thus, htx_xfer() may be interrupted
due to a lack of space after setting HTX_FL_PARSING_ERROR flag. This
triggers the BUG_ON() in qcs_http_rcv_buf(). This does not happen on
frontend side with requests as HTX buffer is passed to the newly created
stream instance without rcv_buf invocation.

This should be backported up to 3.3.
src/h3.c