]> 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:02:18 +0000 (15:02 -0400)
commitf2adaa2b60dd188758ba8675fda8e4177fdff41a
treebfd9b06b0886d6d1ed1047e7c123889013d5a9ad
parent85f39c62f599ff55f36868004a2856c13b0b59f8
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