]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: buffer: fix incorrect check in __b_putblk()
authorWilly Tarreau <w@1wt.eu>
Wed, 5 Sep 2018 17:00:20 +0000 (19:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 5 Sep 2018 18:01:14 +0000 (20:01 +0200)
commitec3750c59068f1ac2c226c33b7e424f1151d49d3
tree63d06fec9e12ba1fe1b66b436c777b8361da855a
parenta0d11b6fd5b6cec3af9a70e38895a665a666ae80
BUG/MAJOR: buffer: fix incorrect check in __b_putblk()

This function was split in two at commit f7d0447 ("MINOR: buffers:
split b_putblk() into __b_putblk()") but it's wrong, the first half's
length is not adjusted to the requested size so it copies more than
desired.

This is purely 1.9-specific, no backport is needed.
include/common/buf.h