chiark / gitweb /
util: document why we have alloca_align()
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Dec 2014 01:33:48 +0000 (02:33 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Dec 2014 12:35:32 +0000 (13:35 +0100)
src/shared/util.h

index a15ce95..9a878ca 100644 (file)
@@ -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_;                                            \