mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-05-09 08:31:33 +08:00
Fix test_malloc_0_null
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
parent
bfa03a2c3a
commit
42ba65d892
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user