DEBUG: buffer: check in __b_put_blk() whether the buffer room is respected
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Feb 2022 16:33:27 +0000 (17:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Feb 2022 16:36:31 +0000 (17:36 +0100)
commit2ee9bece936c844f04888276ab04ffa2287c3623
tree6964054a8e7b1be971c7c440de4780d8a2bfb065
parenteeb4d850eac9ac05c1500444dc5dd506e4a07b22
DEBUG: buffer: check in __b_put_blk() whether the buffer room is respected

This adds a BUG_ON() to make sure we don't face other situations like the
one fixed by previous commit.

(cherry picked from commit d439a496550ba44ceae09a59c72c278163ff8b99)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/buf.h