]> git.kaiwu.me - haproxy.git/commit
MEDIUM: cli: increase the payload pattern up to 64 bytes
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Apr 2026 14:08:29 +0000 (16:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 22 Apr 2026 13:19:12 +0000 (15:19 +0200)
commit80776da29737cdec81644a90c0cd24e9064e22df
tree70a3a99770b68f7697c82b3a0c7d59d5281163b9
parent9b1f0a355306fe716eb7c145db1d41fb2711a462
MEDIUM: cli: increase the payload pattern up to 64 bytes

The maximum size allowed for the payload pattern was increase up to 64 bytes
(65 bytes because of the trailing \0), to be able to use a sha256 of random
data for instance. It could be useful to prevent any data smuggling on the
payload.

Note that on the CLI, it could be possible to have only the buffer size as a
limit, because the command line is only consumed once all commands are
executed. The payload pattern is only a pointer in the buffer where the
command line was copied. However, for the master CLI, the data are streamed
to the worker, so we must keep a copy of he payload pattern. This is why we
must limit its size.
doc/management.txt
include/haproxy/stream-t.h
src/cli.c