mbedtls/programs/test
Manuel Pégourié-Gonnard 01955792b3 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-17 11:14:30 +02:00
..
benchmark.c Fix integer overflow in benchmark program 2020-04-17 11:14:30 +02:00
CMakeLists.txt Remove ssl_cert_test sample app 2019-04-07 16:51:18 +03:00
cpp_dummy_build.cpp cpp_dummy_build: Add NIST key wrapping header 2018-07-24 16:51:09 +01:00
query_compile_time_config.c Fix aligment in programs/test/query_compile_time_config.c 2019-02-07 10:32:31 +00:00
selftest.c Add a calloc self-test 2019-09-30 13:58:12 +02:00
udp_proxy_wrapper.sh udp_proxy_wrapper.sh: fix cleanup not cleaning up 2017-10-24 11:25:19 +01:00
udp_proxy.c Fix some style issues in udp_proxy 2020-03-31 12:32:05 +02:00
zeroize.c Fix coverity defects 2018-06-06 03:44:03 +01:00