]> git.ipfire.org Git - thirdparty/openssl.git/commit
Remove OSSL_CRYPTO_ALLOC attribute from CRYPTO_*dup routines
authorEugene Syromiatnikov <esyr@openssl.org>
Mon, 11 Aug 2025 08:56:13 +0000 (10:56 +0200)
committerNeil Horman <nhorman@openssl.org>
Tue, 12 Aug 2025 19:03:40 +0000 (15:03 -0400)
commitafd9b9f7c9863fd60e6d90baef1a2bed9cb6f64c
tree5b3715a87d89ae940d3580c3094ac22f71157053
parent4df63e0aaad565359cd1729ae09c7851a7db4479
Remove OSSL_CRYPTO_ALLOC attribute from CRYPTO_*dup routines

The __attribute__((malloc)) is for functions that return new memory,
and "the memory [returned by the function] has undefined content", which
is a property that doesn't hold for the *dup functions (the same reason
it doesn't apply to realloc).

Fixes: e1035957eba1 "OSSL_CRYPTO_ALLOC attribute introduction proposal."
Signed-off-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/28220)

(cherry picked from commit 85bba74789f82daca7482a9274c6d02843fb2dbb)
include/openssl/crypto.h.in