]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx: prevent <mark> to copy incomplete headers in htx_xfer_blks()
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 31 Jan 2025 14:31:00 +0000 (15:31 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 31 Jan 2025 14:51:51 +0000 (15:51 +0100)
commit0a28b1ea0c674f7bcc7ad386abdcf963f9176475
tree8703d78cc39b287853be9c707baafdd6e51c8489
parent4ad2accfee59acad4fd5bc0e2b15b4aa23bd57a1
MEDIUM: htx: prevent <mark> to copy incomplete headers in htx_xfer_blks()

Prevent a partial copy of trailers or headers when using the <mark>
parameter.

When using htx_xfer_blks(), transfering partial headers or trailers are
prevented when restricted by the <count> parameter. However using the
<mark> parameter will still allow to do it.

This patch changes the behavior by checking the <mark> type only after
checking the headers/trailers type, so we can still rollback on partial
transfer.

No impact on the current code, which does not try to do that yet.
src/htx.c