]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/mem.c: use open-coded aligned alloc when posix_memalign fails
authorEugene Syromiatnikov <esyr@openssl.org>
Thu, 28 Aug 2025 13:55:29 +0000 (15:55 +0200)
committerNeil Horman <nhorman@openssl.org>
Tue, 16 Sep 2025 13:59:13 +0000 (09:59 -0400)
commitf75a6d951a95d6eea68b5ec6ca564fc8edaf1d14
tree1cae1353babe7480e170807c6d4fc654669f972c
parent8e28f5c0b96c5d71b74cc8fdb2cfb5b3300f2708
crypto/mem.c: use open-coded aligned alloc when posix_memalign fails

While posix_memalign() is generally not expected to fail, we can always use
the internal aligned alloc implementation to ensure that any
OPENSSL_aligned_malloc failure is indeed fatal and does not require
a fallback.

Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28295)
crypto/mem.c
test/mem_alloc_test.c