warning from openssl-3.1.0-beta1 with Coverty

Hal Murray halmurray+openssl at sonic.net
Fri Jan 20 23:26:41 UTC 2023


Is this a known tangle?

In file included from ../../tests/common/tests_main.c:3:
In file included from ../../tests/common/tests_main.h:10:
In file included from ../../include/ntp_auth.h:7:
In file included from /usr/local/ssl/include/openssl/evp.h:30:
In file included from /usr/local/ssl/include/openssl/bio.h:30:
/usr/local/ssl/include/openssl/crypto.h:344:1: warning: unknown attribute 
'unity
_malloc' ignored [-Wunknown-attributes]
OSSL_CRYPTO_ALLOC void *CRYPTO_malloc(size_t num, const char *file, int line);
^~~~~~~~~~~~~~~~~
/usr/local/ssl/include/openssl/macros.h:317:45: note: expanded from macro 
'OSSL_
CRYPTO_ALLOC'
#   define OSSL_CRYPTO_ALLOC __attribute__((malloc))
                                            ^~~~~~
../../tests/unity/unity_memory.h:41:17: note: expanded from macro 'malloc'
#define malloc  unity_malloc
                ^~~~~~~~~~~~

There are 7 copies of that from lines 344-348 and 357-358 in crypto.h

This is from building NTPsec on FreeBSD
FreeBSD clang version 13.0.0 (git at github.com:llvm/llvm-project.git 
llvmorg-13.0.0-0-gd7b669b3a303)


-- 
These are my opinions.  I hate spam.





More information about the openssl-users mailing list