]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: enable memory poisonning to use byte 0
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2015 12:12:13 +0000 (14:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2015 12:12:13 +0000 (14:12 +0200)
commit067ac9f4b6d1f04cba66d2d4324370dc31d5f557
tree07b220ef7ddbbbcb03515f8f44b79f9e0656b041
parenta088d316b71dd71ec86e287d59322f9245e3b36b
MINOR: debug: enable memory poisonning to use byte 0

When debugging an issue, sometimes it can be useful to be able to use
byte 0 to poison memory areas, resulting in the same effect as a calloc().
This patch changes the default mem_poison_byte to -1 to disable it so that
all positive values are usable.
include/common/debug.h
include/common/memory.h
src/memory.c