Commit Graph

42 Commits (SP1A.211105.002.2021112404)

Author SHA1 Message Date
Thibaut Sautereau a33d2ca97d Fix CPPFLAGS in test Makefile
In particular, the _GNU_SOURCE feature test macro needs to be set in
order to correctly define mmap(2) flags such as MAP_ANONYMOUS.
Otherwise, compilation of some test files fails when CPPFLAGS is not
defined in the initial user environment, as Make then does not export it
from the root Makefile to the sub-make.
2021-11-02 16:13:09 -04:00
Daniel Micay 801e8d959f disable mallinfo2 test for old glibc 2021-09-30 01:16:10 -04:00
Daniel Micay 93a87ce30b add new mallinfo2 test to gitignore too 2021-05-12 21:13:06 -04:00
Daniel Micay a45dacc57b add support for glibc mallinfo2 2021-05-12 20:07:15 -04:00
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
Daniel Micay 10c5d61187 work around glibc bug in mallinfo test 2020-11-10 14:14:08 -05:00
Daniel Micay 8906c0941a improve mallinfo test 2020-09-18 11:38:06 -04:00
Daniel Micay 022b64791e whitespace fixes 2020-09-17 17:23:13 -04:00
rwarr627 7804e263e9 added tests for if malloc_object_size small allocations are free 2020-06-17 23:29:30 -04:00
Daniel Micay de3fb50dcc tests: make no-optimize attribute Clang compatible 2020-06-17 20:08:46 -04:00
Daniel Micay b404d6da6e fix out-of-memory check in offset test 2020-06-17 16:27:59 -04:00
Daniel Micay c9c7dca498 use size_t in offset test to fix warning 2020-06-17 16:26:08 -04:00
rwarr627 195bc8c92a added tests for malloc_object_size
LDFLAGS is on single line
2020-06-13 01:27:32 -04:00
rwarr627 0a3a726c93 added tests for malloc_usable_size 2020-04-29 18:06:15 -04:00
Daniel Micay c75dcb9d9c compare with negative integers to check signals 2020-04-11 15:26:24 -04:00
Daniel Micay d757835d90 increase size for eight_byte_overflow_large test
This was not working as expected due to CONFIG_EXTENDED_SIZE_CLASSES
resulting in 128k being a slab allocation size class. The addition of
padding for the canary pushes it into the next size class, resulting in
this writing over size class rounding padding rather than this actually
being an overflow as intended.
2020-04-11 15:25:34 -04:00
rwarr627 b160f723e0 ignores __pycache__ 2020-04-11 15:08:30 -04:00
rwarr627 ec6854c71b added test rule 2020-04-11 15:08:30 -04:00
rwarr627 6b987e644b verifies the results of the simple-memory-corruption tests 2020-04-11 15:08:30 -04:00
Daniel Micay 539d4f0d37 add extended size classes to offset test 2019-06-18 15:51:28 -04:00
Daniel Micay b40ba9754b add malloc_info test 2019-05-05 08:37:55 -04:00
Daniel Micay f6f4402ff3 expand test gitignore 2019-05-05 08:37:55 -04:00
Daniel Micay 2ae0ed4674 add large array growth test 2019-05-05 08:37:55 -04:00
Daniel Micay 350d0e5fd2 add real mallinfo implementation for Android
Android Q uses the mallinfo implementation in the ART GC:

c220f98180
1575267302
2019-04-06 20:54:26 -04:00
Daniel Micay f3623e1f2b finish migration away from config.h 2018-11-16 15:40:45 -05:00
Daniel Micay 3cd3d34b3e extend gitignore for tests 2018-11-06 04:23:53 -05:00
Daniel Micay 1d2c10f5bb tweak canary awareness in offset test 2018-10-19 16:19:29 -04:00
Daniel Micay e47c783524 add test for delete size mismatch 2018-10-11 01:45:47 -04:00
Daniel Micay 57d5ab769b add write-after-free tests with potential reuse 2018-10-08 17:41:06 -04:00
Daniel Micay 9b7691a2a7 take canaries into account for the offset test 2018-10-04 02:52:20 -04:00
Daniel Micay 71d52d981e fix output of size class offset test 2018-10-04 02:41:01 -04:00
Daniel Micay 93fcc6a978 add simple string overflow test 2018-10-03 17:15:38 -04:00
Daniel Micay 918f0d3302 improve write-after-free tests 2018-09-06 23:50:49 -04:00
Daniel Micay 5017500a47 add simple overflow tests 2018-09-04 09:15:23 -04:00
Daniel Micay 497f71ac65 reorder offset test output 2018-08-26 04:51:47 -04:00
Daniel Micay bec20a39cf add offset test 2018-08-26 03:19:59 -04:00
Daniel Micay 35c9e6f16d add delayed double free tests 2018-08-24 05:53:17 -04:00
Daniel Micay aaa4eeca4d add a clean target for the memory corruption tests 2018-08-24 05:25:52 -04:00
Daniel Micay bde8c3c29b add another test for invalid small region frees 2018-08-24 05:09:33 -04:00
Daniel Micay fe85116891 add uninitialized allocator tests 2018-08-24 05:03:12 -04:00
Daniel Micay 0a79e82474 add basic invalid free tests 2018-08-24 04:48:57 -04:00
Daniel Micay 27ac1e21bc add initial simple memory corruption tests 2018-08-24 03:13:50 -04:00