mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-16 23:29:56 +00:00
@@ -1,4 +1,4 @@
|
|||||||
/* mbedtls_config.h modifier that forces calloc(0) to return NULL.
|
/* crypto_config.h modifier that forces calloc(0) to return NULL.
|
||||||
* Used for testing.
|
* Used for testing.
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -249,7 +249,7 @@ component_build_tfm () {
|
|||||||
component_test_malloc_0_null () {
|
component_test_malloc_0_null () {
|
||||||
msg "build: malloc(0) returns NULL (ASan+UBSan build)"
|
msg "build: malloc(0) returns NULL (ASan+UBSan build)"
|
||||||
scripts/config.py full
|
scripts/config.py full
|
||||||
make CC=$ASAN_CC CFLAGS="'-DMBEDTLS_USER_CONFIG_FILE=\"$PWD/tests/configs/user-config-malloc-0-null.h\"' $ASAN_CFLAGS" LDFLAGS="$ASAN_CFLAGS"
|
make CC=$ASAN_CC CFLAGS="'-DTF_PSA_CRYPTO_USER_CONFIG_FILE=\"$PWD/tests/configs/user-config-malloc-0-null.h\"' $ASAN_CFLAGS" LDFLAGS="$ASAN_CFLAGS"
|
||||||
|
|
||||||
msg "test: malloc(0) returns NULL (ASan+UBSan build)"
|
msg "test: malloc(0) returns NULL (ASan+UBSan build)"
|
||||||
make test
|
make test
|
||||||
|
|||||||
Reference in New Issue
Block a user