1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-08 17:42:09 +03:00

Merge pull request #7486 from AndrzejKurek/calloc-also-zeroizes

Document mbedtls_calloc zeroization
This commit is contained in:
Gilles Peskine
2023-08-21 15:47:21 +00:00
committed by GitHub
8 changed files with 161 additions and 11 deletions

View File

@@ -192,6 +192,10 @@ pre_initialize_variables () {
# default to -O2, use -Ox _after_ this if you want another level
ASAN_CFLAGS='-O2 -Werror -fsanitize=address,undefined -fno-sanitize-recover=all'
# Platform tests have an allocation that returns null
export ASAN_OPTIONS="allocator_may_return_null=1"
export MSAN_OPTIONS="allocator_may_return_null=1"
# Gather the list of available components. These are the functions
# defined in this script whose name starts with "component_".
ALL_COMPONENTS=$(compgen -A function component_ | sed 's/component_//')