mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-03-20 11:11:08 +01:00
Fix wrong pointer type passed to printf
It works in practice, but clang on FreeBSD rightfully complains about it. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
@@ -127,7 +127,7 @@ void check_mbedtls_calloc_overallocation(intmax_t num, intmax_t size)
|
||||
unsigned char *buf;
|
||||
buf = mbedtls_calloc((size_t) num, (size_t) size);
|
||||
/* Dummy usage of the pointer to prevent optimizing it */
|
||||
mbedtls_printf("calloc pointer : %p\n", buf);
|
||||
mbedtls_printf("calloc pointer : %p\n", (void *) buf);
|
||||
TEST_ASSERT(buf == NULL);
|
||||
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user