]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: always check that the old ring fits in the new one in ring_dup()
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Apr 2024 06:31:01 +0000 (08:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Apr 2024 06:31:01 +0000 (08:31 +0200)
commit4615cb510cb44bb02abe165881dc7020a17b8b78
tree385e0dacb297ea62769f039b1f02f1f817795aab
parent3ef7daa73169fc0d72b60e79ac6782d903dd6d4e
MINOR: ring: always check that the old ring fits in the new one in ring_dup()

Let's add a BUG_ON() to make sure we don't accidentally shrink a buffer.
include/haproxy/ring.h