]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: cli: Properly handle too big payload on a command line
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Apr 2026 08:28:25 +0000 (10:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 Apr 2026 13:18:47 +0000 (15:18 +0200)
commitebb801d7c814b4ffddca119bd176696054dbb513
tree8719b032095e957805c429d0d1012a0d36409a75
parentc82b10b8d28e4303e7de5da8362a90bca5713acc
BUG/MEDIUM: cli: Properly handle too big payload on a command line

When command line is parsed, when the payload was too big the error was not
properly handled. Instead of leaving the parsing function to print the
error, we looped infinitly trying to parse remaining data.

When the command line is too big, we must exit the parsing function in
CLI_ST_PRINT_ERR state. Instead of exiting the function, we only left the
while loop, setting this way the cli applet in CLI_ST_PROMPT state.

This patch must be backported as far as 3.2.
src/cli.c