Jerry Yu | 9a12df0 | 2023-03-03 12:55:16 +0800 | [diff] [blame] | 1 | |
| 2 | Time: get milliseconds |
| 3 | time_get_milliseconds: |
| 4 | |
| 5 | Time: get seconds |
| 6 | time_get_seconds: |
Andrzej Kurek | 60de0b1 | 2023-05-09 16:38:04 -0400 | [diff] [blame] | 7 | |
| 8 | Check mbedtls_calloc overallocation |
Gilles Peskine | 05ebe96 | 2023-10-01 21:44:31 +0200 | [diff] [blame] | 9 | # This test case exercises an integer overflow in calloc. Under Asan, with |
Gilles Peskine | 3b2b7f8 | 2023-11-22 18:08:17 +0100 | [diff] [blame] | 10 | # a modern Clang, this triggers an ASan/MSan/TSan complaint. The complaint |
| 11 | # can be avoided with e.g. ASAN_OPTIONS=allocator_may_return_null=1, |
| 12 | # but this has to be set in the environment before the program starts, |
| 13 | # and could hide other errors. |
| 14 | depends_on:!MBEDTLS_TEST_HAVE_ASAN:!MBEDTLS_TEST_HAVE_MSAN:!MBEDTLS_TEST_HAVE_TSAN |
Andrzej Kurek | 60de0b1 | 2023-05-09 16:38:04 -0400 | [diff] [blame] | 15 | check_mbedtls_calloc_overallocation:SIZE_MAX/2:SIZE_MAX/2 |