]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: htx: Fix free space addresses calculation during a block expansion
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Jul 2019 08:50:28 +0000 (10:50 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Jul 2019 09:17:52 +0000 (11:17 +0200)
commit61ed7797f6440ee1102576365553650b1982a233
tree576e74bbaccc4ef93f476094487601b9829c2a1b
parent301eff8e215d5dc7130e1ebacd7cf8da09a4f643
BUG/MINOR: htx: Fix free space addresses calculation during a block expansion

When the payload of a block is shrinked or enlarged, addresses of the free
spaces must be updated. There are many possible cases. One of them is
buggy. When there is only one block in the HTX message and its payload is just
before the tail room and it needs to be moved in the head room to be enlarged,
addresses are not correctly updated. This bug may be hit by the compression
filter.

This patch must be backported to 2.0.
src/htx.c