mbedtls/programs
Manuel Pégourié-Gonnard 5408f72027 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:19:49 +02:00
..
aes Zeroize sensitive data in aescrypt2 and crypt_and_hash examples 2018-10-15 13:26:37 +01:00
hash Fix typo in platform macro defines for examples 2018-07-10 17:34:25 +01:00
pkey Fix debug message by using the correct function name called 2020-03-19 12:09:21 +01:00
random Fix typo in platform macro defines for examples 2018-07-10 17:34:25 +01:00
ssl Fix possible close_notify/ClientHello confusion 2020-03-03 10:15:26 +01:00
test Fix integer overflow in benchmark program 2020-04-17 11:19:49 +02:00
util Fix typo in platform macro defines for examples 2018-07-10 17:34:25 +01:00
x509 Document support for MD2 and MD4 in programs/x509/cert_write 2019-06-03 16:22:19 +01:00
.gitignore Add new program to gitignore 2015-11-02 06:34:29 +09:00
CMakeLists.txt
Makefile programs: Make make clean clean all programs always 2019-06-20 16:30:36 +01:00
wince_main.c Change main license to Apache 2.0 2015-09-04 14:21:07 +02:00