BUG/MEDIUM: compression: Fix loop skipping unused blocks to get the next block
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 9 Jun 2021 14:59:02 +0000 (16:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 10 Jun 2021 06:57:55 +0000 (08:57 +0200)
commit86ca0e52f7fef2db55ee870d5740f715dac7c30d
tree44f88421890f2d3c7e2cb808cb0bb48fd311352b
parent5ac9a393efef8373d14ba9579b4f815239c53576
BUG/MEDIUM: compression: Fix loop skipping unused blocks to get the next block

In comp_http_payload(), the loop skipping unused blocks is buggy and may
lead to a infinite loop if the first next block is unused. Indeed instead of
iterating on blocks, we always retrieve the same one because <blk> is used
instead of <next> to get the next block.

This bug was introduced when the EOM block was removed in 2.4. Thus, this
patch must be backported to 2.4.
src/flt_http_comp.c