hardened_malloc/test
Julien Voisin 6ce663a8bd Fix -Wimplicit-function-declaration error with gcc 14.
```
malloc_info.c: In function 'leak_memory':
malloc_info.c:12:12: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
   12 |     (void)!malloc(1024 * 1024 * 1024);
      |            ^~~~~~
malloc_info.c:10:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
    9 | #include "../util.h"
  +++ |+#include <stdlib.h>
   10 |
malloc_info.c:12:12: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
   12 |     (void)!malloc(1024 * 1024 * 1024);
      |            ^~~~~~
```

Taken from https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/72971/

Co-authored-by: @mio
2024-10-03 23:44:15 -04:00
..
.gitignore test: add regression test for missing init() in realloc() 2023-09-27 19:19:19 -04:00
Makefile test: add regression test for missing init() in realloc() 2023-09-27 19:19:19 -04:00
__init__.py Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
delete_type_size_mismatch.cc Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
double_free_large.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
double_free_large_delayed.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
double_free_small.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
double_free_small_delayed.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
impossibly_large_malloc.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
invalid_free_protected.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
invalid_free_small_region.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
invalid_free_small_region_far.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
invalid_free_unprotected.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
invalid_malloc_object_size_small.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
invalid_malloc_object_size_small_quarantine.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
invalid_malloc_usable_size_small.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
invalid_malloc_usable_size_small_quarantine.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
large_array_growth.c tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
mallinfo.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
mallinfo2.c drop legacy glibc support 2023-06-10 14:04:46 -04:00
malloc_info.c Fix -Wimplicit-function-declaration error with gcc 14. 2024-10-03 23:44:15 -04:00
malloc_object_size.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
malloc_object_size_offset.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
offset.c fix out-of-memory check in offset test 2020-06-17 16:27:59 -04:00
overflow_large_1_byte.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
overflow_large_8_byte.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
overflow_small_1_byte.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
overflow_small_8_byte.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
read_after_free_large.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
read_after_free_small.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
read_zero_size.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
realloc_init.c test: add regression test for missing init() in realloc() 2023-09-27 19:19:19 -04:00
string_overflow.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
test_smc.py test: add regression test for missing init() in realloc() 2023-09-27 19:19:19 -04:00
test_util.h tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
unaligned_free_large.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
unaligned_free_small.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
unaligned_malloc_usable_size_small.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
uninitialized_free.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
uninitialized_malloc_usable_size.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
uninitialized_read_large.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
uninitialized_read_small.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
uninitialized_realloc.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
write_after_free_large.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
write_after_free_large_reuse.c Move memory corruption tests up a directory 2022-01-21 15:00:18 -05:00
write_after_free_small.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
write_after_free_small_reuse.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00
write_zero_size.c clean up includes and remove non-portable includes 2022-02-07 07:14:51 -05:00