]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add array memory allocation routines
authorEugene Syromiatnikov <esyr@openssl.org>
Thu, 17 Jul 2025 01:32:02 +0000 (03:32 +0200)
committerNeil Horman <nhorman@openssl.org>
Fri, 8 Aug 2025 16:22:10 +0000 (12:22 -0400)
commitfa9b7b930e3e59f5b30de0e8a6755bfaafdd5c49
tree6037dea107b81e44ab79781674ef2cf05714e3d5
parentaf6a8fdf750b3db7c93075fdd3a6c0c86dc5b625
Add array memory allocation routines

Such routines allow alleviating the need to perform explicit integer
overflow check during allocation size calculation and generally make
the allocations more semantic (as they signify that a collection
of NUM items, each occupying SIZE bytes is being allocated), which paves
the road for additional correctness checks in the future.

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/array_alloc.c [new file with mode: 0644]
crypto/build.info
doc/man3/OPENSSL_malloc.pod
doc/man3/OPENSSL_secure_malloc.pod
include/internal/mem_alloc_utils.h
include/openssl/crypto.h.in
util/libcrypto.num
util/other.syms