]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/mem.c: bump alignment to sizeof(void *) when posix_memaling() is used
authorEugene Syromiatnikov <esyr@openssl.org>
Thu, 31 Jul 2025 13:09:36 +0000 (15:09 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 8 Aug 2025 16:22:10 +0000 (12:22 -0400)
commitff3caae4d288c27b4268a3e55fb94a5abeff5881
tree777133c140766147e6e309eec206cfb17369c96a
parent26dc3d98369f290bd61e0fb41eb0f2ec91d686b6
crypto/mem.c: bump alignment to sizeof(void *) when posix_memaling() is used

Per [1]:

    The value of alignment shall be a power of two multiple of sizeof(void *).

[1] https://pubs.opengroup.org/onlinepubs/9799919799/functions/posix_memalign.html

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28059)
crypto/mem.c