mbedtls/tests
Gilles Peskine 34693b5dd6 Add a test component with malloc(0) returning NULL
Exercise the library functions with calloc returning NULL for a size
of 0. Make this a separate job with UBSan (and ASan) to detect
places where we try to dereference the result of calloc(0) or to do
things like

    buf = calloc(size, 1);
    if (buf == NULL && size != 0) return INSUFFICIENT_MEMORY;
    memcpy(buf, source, size);

which has undefined behavior when buf is NULL at the memcpy call even
if size is 0.

This is needed because other test components jobs either use the system
malloc which returns non-NULL on Linux and FreeBSD, or the
memory_buffer_alloc malloc which returns NULL but does not give as
useful feedback with ASan (because the whole heap is a single C
object).
2020-03-13 12:03:12 +00:00
..
.jenkins
configs Add a test component with malloc(0) returning NULL 2020-03-13 12:03:12 +00:00
data_files Use DER encoded keys with tinycrypt 2019-10-30 15:00:01 +02:00
git-scripts
scripts Add a test component with malloc(0) returning NULL 2020-03-13 12:03:12 +00:00
suites Remove entropy source overwrite in baremetal_test 2020-01-07 14:48:33 +02:00
.gitignore
CMakeLists.txt Add test suite for tinycrypt 2019-09-09 08:19:56 +03:00
compat.sh compat.sh: Introduce env variable for CRTs, CAs and keys 2019-09-04 16:19:49 +01:00
Descriptions.txt
Makefile Fix tests to work in Mbed OS test environment 2019-10-24 15:48:47 +03:00
ssl-opt.sh Add test for record compression in ssl-opt.sh 2020-03-09 17:39:04 +00:00