From: Eugene Syromiatnikov Date: Mon, 30 Mar 2026 08:10:35 +0000 (+0200) Subject: OPENSSL_malloc.pod: mention CRYPTO_aligned_alloc{,_array}() in RETURN VALUES X-Git-Tag: openssl-4.0.0~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=268c2d15026fb1e0debae6d6266d8d7794780475;p=thirdparty%2Fopenssl.git OPENSSL_malloc.pod: mention CRYPTO_aligned_alloc{,_array}() in RETURN VALUES Addition of those has been originally overlooked. Complements: cc4ea5e00028 "Introduce new internal hashtable implementation" Complements: fa9b7b930e3e "Add array memory allocation routines" Complements: 14a24fd14ff7 "doc/man3/OPENSSL_malloc.pod: explicitly document freeptr value on failures" Signed-off-by: Eugene Syromiatnikov Reviewed-by: Nikola Pajkovsky Reviewed-by: Tomas Mraz MergeDate: Wed Apr 8 10:23:55 2026 (Merged from https://github.com/openssl/openssl/pull/30623) (cherry picked from commit 56358abb5aa5fc2f78fa53297b51e4d8f4b04c2f) --- diff --git a/doc/man3/OPENSSL_malloc.pod b/doc/man3/OPENSSL_malloc.pod index 4dd1e717cf0..cb02d4ade83 100644 --- a/doc/man3/OPENSSL_malloc.pod +++ b/doc/man3/OPENSSL_malloc.pod @@ -238,14 +238,15 @@ OPENSSL_malloc(), OPENSSL_aligned_alloc(), OPENSSL_zalloc(), OPENSSL_realloc(), OPENSSL_malloc_array(), OPENSSL_aligned_alloc_array(), OPENSSL_calloc(), OPENSSL_realloc_array(), OPENSSL_clear_realloc(), OPENSSL_clear_realloc_array(), -CRYPTO_malloc(), CRYPTO_zalloc(), CRYPTO_realloc(), -CRYPTO_malloc_array(), CRYPTO_calloc(), CRYPTO_realloc_array(), +CRYPTO_malloc(), CRYPTO_aligned_alloc(), CRYPTO_zalloc(), CRYPTO_realloc(), +CRYPTO_malloc_array(), CRYPTO_aligned_alloc_array(), CRYPTO_calloc(), +CRYPTO_realloc_array(), CRYPTO_clear_realloc(), CRYPTO_clear_realloc_array(), OPENSSL_strdup(), and OPENSSL_strndup() return a pointer to allocated memory or NULL on error. -OPENSSL_aligned_alloc() and OPENSSL_aligned_alloc_array() set B -to NULL on error. +OPENSSL_aligned_alloc(), OPENSSL_aligned_alloc_array(), CRYPTO_aligned_alloc(), +and CRYPTO_aligned_alloc_array() set B to NULL on error. CRYPTO_set_mem_functions() returns 1 on success or 0 on failure (almost always because allocations have already happened).