Commit 56358abb5a for openssl.org

commit 56358abb5aa5fc2f78fa53297b51e4d8f4b04c2f
Author: Eugene Syromiatnikov <esyr@openssl.org>
Date:   Mon Mar 30 10:10:35 2026 +0200

    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 <esyr@openssl.org>

    Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
    Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
    MergeDate: Wed Apr  8 10:23:55 2026
    (Merged from https://github.com/openssl/openssl/pull/30623)

diff --git a/doc/man3/OPENSSL_malloc.pod b/doc/man3/OPENSSL_malloc.pod
index 8de534b94d..e8b4ec29a9 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<freeptr>
-to NULL on error.
+OPENSSL_aligned_alloc(), OPENSSL_aligned_alloc_array(), CRYPTO_aligned_alloc(),
+and CRYPTO_aligned_alloc_array() set B<freeptr> to NULL on error.

 CRYPTO_set_mem_functions() returns 1 on success or 0 on failure (almost
 always because allocations have already happened).