mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 02:52:38 -04:00

This test case exercises an integer overflow in calloc. Under Asan, with a modern Clang, this triggers an Asan complaint. The complaint can be avoided with ASAN_OPTIONS=allocator_may_return_null=1, but this has to be set in the environment before the program starts, and could hide other errors. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
16 lines
520 B
Plaintext
16 lines
520 B
Plaintext
|
|
Time: get milliseconds
|
|
time_get_milliseconds:
|
|
|
|
Time: get seconds
|
|
time_get_seconds:
|
|
|
|
Check mbedtls_calloc overallocation
|
|
# This test case exercises an integer overflow in calloc. Under Asan, with
|
|
# a modern Clang, this triggers an Asan complaint. The complaint can be
|
|
# avoided with ASAN_OPTIONS=allocator_may_return_null=1, but this has to
|
|
# be set in the environment before the program starts, and could hide
|
|
# other errors.
|
|
depends_on:!MBEDTLS_TEST_HAVE_ASAN
|
|
check_mbedtls_calloc_overallocation:SIZE_MAX/2:SIZE_MAX/2
|