Add fence_malloc() and fence_free().
authorSøren Sandmann Pedersen <ssp@redhat.com>
Mon, 13 Sep 2010 18:34:34 +0000 (14:34 -0400)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Tue, 21 Sep 2010 12:28:55 +0000 (08:28 -0400)
commitdc9fe269ea2a1a0b8334d0936e2541af48b81bc7
treed5884a2f36af239b963db61a6ae4437d32d156fd
parentf4dc73bad4f662bdc3c94cb1e224f9a1989beba5
Add fence_malloc() and fence_free().

These variants of malloc() and free() try to surround the allocated
memory with protected pages so that out-of-bounds accessess will cause
a segmentation fault.

If mprotect() and getpagesize() are not available, these functions are
simply equivalent to malloc() and free().
configure.ac
test/utils.c
test/utils.h