]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stconn: Don't perform L7 retries with large buffer
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 12 Mar 2026 20:41:31 +0000 (21:41 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Mar 2026 06:48:02 +0000 (07:48 +0100)
commit9c0aeb3af489cf9c058df88367ad0cf676d3aa7e
tree919c6e7ac90fb0bbcfdc17ac874ce4c139453f2d
parentcd918380429a1a92d2316c14640d633e56d5c591
BUG/MEDIUM: stconn: Don't perform L7 retries with large buffer

L7 retries are buggy when a large buffer is used on the request channel. A
memcpy is used to copy data from the request buffer into the L7 buffer. The
L7 buffer is for now always a standard buffer. So if a larger buffer is
used, this leads to a buffer overflow and crash the process.

The Best way to fix the issue is to disable L7 retries when a large buffer
was allocated for the request channel. In that case, we don't want to
allocate an extra large buffer.

No backport needed.
src/stconn.c