]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: compression: Be sure to never compress more than a chunk at once
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Feb 2026 06:54:11 +0000 (07:54 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Feb 2026 12:26:21 +0000 (13:26 +0100)
commitf82ace414b0388745df2018b71c2313d4b41fe46
tree8f3172fa4669a7ea4144338ce345393e92f867c1
parent53b7150357b0ca3bfd4af784e349b6f06131baab
MEDIUM: compression: Be sure to never compress more than a chunk at once

When the compression is performed, a trash chunk is used. So be sure to
never compression more data than the trash size. Otherwise the commression
could fail. Today, this cannot happen. But with the large buffers support on
channels, it could be an issue.

Note that this part should be reviewed to evaluate if we should use a larger
chunk too to perform the compression, maybe via an option.
src/flt_http_comp.c