]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: spoe: Acquire context buffer in applet before consuming a frame
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Feb 2026 13:31:17 +0000 (14:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Feb 2026 14:47:25 +0000 (15:47 +0100)
commitc2b54462929845274cad7251ddc8c909187ce0c4
tree44e8425970f44803f401f2ea6ac857d165427c86
parentbbd8492c2220f1b4a11ee0d7319da9578f2c0845
BUG/MEDIUM: spoe: Acquire context buffer in applet before consuming a frame

Changes brought to support large buffers revealed a bug in the SPOE applet
when a frame is copied in the SPOE context buffer. A b_xfer() was performed
without allocating the SPOE context buffer. It is not expected. As stated in
the function documentation, the caller is responsible for ensuring there is
enough space in the destination buffer. So first of all, it must ensure this
buffer was allocated.

With recent changes, we are able to hit a BUG_ON() because the swap is no
longer possible if source and destination buffers size are not the same.

This patch should fix the issue #3286. It could be backported as far as 3.1.
src/flt_spoe.c