]> git.kaiwu.me - haproxy.git/commit
MINOR: debug/pools: make DEBUG_UAF also detect underflows
authorWilly Tarreau <w@1wt.eu>
Thu, 22 Feb 2018 13:14:23 +0000 (14:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Feb 2018 13:18:45 +0000 (14:18 +0100)
commit364d7451061f6ca6df09f9b9c15525483c3f7f07
treeb94d3aca10c85e9c02a58daae8d2648e4c9b6843
parent5a9cce46531ceea9fa4338c064e90f7a514b0ce1
MINOR: debug/pools: make DEBUG_UAF also detect underflows

Since we use padding before the allocated page, it's trivial to place
the allocated address there and see if it gets mangled once we release
it.

This may be backported to stable releases already using DEBUG_UAF.
include/common/memory.h