mbedtls/tests
Gilles Peskine 0c510f36dd Fix NULL+0 in test code
Fix likely harmless undefined behavior in cipher tests pointed out by
UBSan with recent compilers (e.g. Clang 10). When the complete output
is empty, the output buffer is NULL. Adding an integer to a null
pointer is undefined behavior even when the integer is 0, so make a
special case for that.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-03-24 00:41:51 +01:00
..
.jenkins
configs
data_files Merge pull request #3698 from darrenkrahn/development 2021-01-17 18:06:18 +00:00
docker/bionic
git-scripts
include/test Move test driver hash function declarations to software driver 2021-03-10 13:00:25 +01:00
scripts Merge pull request #4214 from gilles-peskine-arm/psa-storage-format-test-types 2021-03-22 12:16:17 +01:00
src Merge pull request #3386 from gabor-mezei-arm/3268_update_macros_for_ouput_buffer_size 2021-03-11 13:30:42 +01:00
suites Fix NULL+0 in test code 2021-03-24 00:41:51 +01:00
.gitignore
CMakeLists.txt Test code for storage format stability 2021-03-10 23:22:35 +01:00
compat-in-docker.sh
compat.sh
context-info.sh Merge pull request #3614 from gilles-peskine-arm/ssl-opt-gnutls-printf-development 2020-11-04 17:55:42 +01:00
Descriptions.txt
make-in-docker.sh
Makefile Adding printf format warning flags to makefiles 2021-03-10 17:00:32 +00:00
ssl-opt-in-docker.sh
ssl-opt.sh SECP224K1 is not yet supported via the PSA API 2021-03-23 13:59:58 +01:00