mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-11 05:12:51 +02:00
The MAX() macro was used to limit the count of bytes to be transferred in appctx_raw_rcv_buf() by commitee53d8421f("MEDIUM: applet: Simplify a bit API to exchange data with applets") instead of MIN(). It didn't seem to have any consequences until commitf37ddbeb4b("MAJOR: cli: Update the CLI applet to handle its own buffers") that triggers a BUG_ON() in __b_putblk() when the other side is slow to read, because we're trying to append a full buffer on top of a non-empty one. A way to reproduce it is to dump a heavy stick table on the CLI with a screen scrolling. No backport is needed since this was introduced in 3.0-dev3 and revealed after dev5 only.