From 10af76a50c1ff8ffe66c4358ad08bab87d23f98e Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sun, 27 Oct 2019 08:12:01 +0100 Subject: [PATCH] added a TODO item for posix_memalign wrapper --- libdislocator/libdislocator.so.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libdislocator/libdislocator.so.c b/libdislocator/libdislocator.so.c index 7f44071a..d172f7a2 100644 --- a/libdislocator/libdislocator.so.c +++ b/libdislocator/libdislocator.so.c @@ -188,6 +188,10 @@ void* calloc(size_t elem_len, size_t elem_cnt) { } +/* TODO: add a wrapper for posix_memalign, otherwise apps who use it, + will fail when freeing the memory. +*/ + /* The wrapper for malloc(). Roughly the same, also clobbers the returned memory (unlike calloc(), malloc() is not guaranteed to return zeroed memory). */