mbedtls/programs/test
Manuel Pégourié-Gonnard e52fd3fa55 Fix integer overflow in benchmark program
When building with MBEDTLS_MEMORY_DEBUG enabled, and running the ecdh part,
the benchmark program would start writing a very large number of space
characters on stdout, and would have to be killed because it never seemed to
terminate.

This was due to an integer overflow in computing how many space to leave after
the title in order to get memory measurements aligned, which resulted in up
to SIZE_MAX spaces being printed.

This commit just fixes the overflow, the next commit is going to fix the magic
number (12).

Signed-off-by: Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>
2020-04-09 10:11:17 +02:00
..
cmake_subproject Restore linking against all libraries in the cmake_subproject test 2020-03-23 17:55:31 +01:00
benchmark.c Fix integer overflow in benchmark program 2020-04-09 10:11:17 +02:00
CMakeLists.txt Link test programs that only use platform functions with mbedcrypto 2020-03-19 14:23:45 +01:00
cpp_dummy_build.cpp Revert "cpp_dummy_build: Remove X.509 dependency" 2020-03-19 14:23:45 +01:00
query_compile_time_config.c Fix aligment in programs/test/query_compile_time_config.c 2019-02-07 10:38:22 +00:00
query_config.c Refresh generated files 2020-03-23 21:54:07 +01:00
selftest.c Revert "selftest: Remove X.509 selftest" 2020-03-19 14:23:45 +01:00
udp_proxy.c Fix some style issues in udp_proxy 2020-03-31 12:07:13 +02:00
udp_proxy_wrapper.sh Revert "Remove programs that depend on TLS or X.509" 2020-03-19 14:07:55 +01:00
zeroize.c Fix coverity defects 2018-06-06 03:44:03 +01:00