hardened_malloc/test/simple-memory-corruption
Thibaut Sautereau 76860c72e1 malloc_usable_size: clean abort on invalid region
It's the region pointer that can be NULL here, and p was checked at the
beginning of the function. Also fix the test accordingly.
2021-02-10 17:41:17 -05:00
..
__init__.py verifies the results of the simple-memory-corruption tests 2020-04-11 15:08:30 -04:00
.gitignore added tests for if malloc_object_size small allocations are free 2020-06-17 23:29:30 -04:00
delete_type_size_mismatch.cc tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
double_free_large_delayed.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
double_free_large.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
double_free_small_delayed.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
double_free_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
eight_byte_overflow_large.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
eight_byte_overflow_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
invalid_free_protected.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
invalid_free_small_region_far.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
invalid_free_small_region.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
invalid_free_unprotected.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
invalid_malloc_object_size_small_quarantine.c added tests for if malloc_object_size small allocations are free 2020-06-17 23:29:30 -04:00
invalid_malloc_object_size_small.c added tests for if malloc_object_size small allocations are free 2020-06-17 23:29:30 -04:00
invalid_malloc_usable_size_small_quarantine.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
invalid_malloc_usable_size_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
Makefile whitespace fixes 2020-09-17 17:23:13 -04:00
malloc_object_size_offset.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
malloc_object_size.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
read_after_free_large.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
read_after_free_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
read_zero_size.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
string_overflow.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
test_smc.py malloc_usable_size: clean abort on invalid region 2021-02-10 17:41:17 -05:00
unaligned_free_large.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
unaligned_free_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
unaligned_malloc_usable_size_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
uninitialized_free.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
uninitialized_malloc_usable_size.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
uninitialized_realloc.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
write_after_free_large_reuse.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
write_after_free_large.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
write_after_free_small_reuse.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
write_after_free_small.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
write_zero_size.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00