From 257224b0cdbb5ae1ac463a6a6645e033882b967e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 12 Dec 2014 02:33:48 +0100 Subject: util: document why we have alloca_align() --- src/shared/util.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/util.h b/src/shared/util.h index a15ce95a65..9a878ca1ac 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -883,6 +883,7 @@ int unlink_noerrno(const char *path); (void *) memset(_new_, 0, _len_); \ }) +/* It's not clear what alignment glibc/gcc alloca() guarantee, hence provide a guaranteed safe version */ #define alloca_align(size, align) \ ({ \ void *_ptr_; \ -- cgit v1.2.3-54-g00ecf