mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-06 21:40:11 +00:00
Add a build to all.sh to check mbedtls_platform_zeroize() calls
Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
parent
351a391011
commit
daddf11a30
@ -5117,6 +5117,16 @@ support_build_cmake_custom_config_file () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
component_build_zeroize_checks () {
|
||||||
|
msg "build: check for obviously wrong calls to mbedtls_platform_zeroize()"
|
||||||
|
|
||||||
|
scripts/config.py full
|
||||||
|
|
||||||
|
# Only compile - we're looking for sizeof-pointer-memaccess warnings
|
||||||
|
make CC=gcc CFLAGS='-Werror -DMBEDTLS_PLATFORM_ZEROIZE_CHECK_UNSAFE -Wsizeof-pointer-memaccess'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
component_test_zeroize () {
|
component_test_zeroize () {
|
||||||
# Test that the function mbedtls_platform_zeroize() is not optimized away by
|
# Test that the function mbedtls_platform_zeroize() is not optimized away by
|
||||||
# different combinations of compilers and optimization flags by using an
|
# different combinations of compilers and optimization flags by using an
|
||||||
|
Loading…
x
Reference in New Issue
Block a user