]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: htx: Adjust length to add DATA block in an empty HTX buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 12 Jan 2022 13:03:42 +0000 (14:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 13 Jan 2022 08:34:22 +0000 (09:34 +0100)
commit28e7ba86885d60a29036bc6fa3a89777148a3762
treec498e8c20e9f29eefdf995de3bf9024320b46a42
parentb80b20c6ff50bb8eec9b0fc9394f3fa4a22a7da0
BUG/MEDIUM: htx: Adjust length to add DATA block in an empty HTX buffer

htx_add_data() is able to partially consume data. However there is a bug
when the HTX buffer is empty.  The data length is not properly
adjusted. Thus, if it exceeds the HTX buffer size, no block is added. To fix
the issue, the length is now adjusted first.

This patch must be backported as far as 2.0.
src/htx.c