aboutsummaryrefslogtreecommitdiff
path: root/tests/malloc_iterate_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use SKIP_WITH_HWASAN macro from libbase.Florian Mayer2022-04-151-0/+1
| | | | Change-Id: I83681d2191bf4184e52d84d1107d61065927bb24
* Add a flag to distinguish shared VMAsEdgar Arriaga2021-01-141-2/+4
| | | | | | | | | | This flag is required to filter out shared VMAs when compacting memory using process_madvise. Test: atest bionic-unit-tests-static Bug: 173258203 Change-Id: I01fc0cc614b03128a5a9b0a6c8c5c2d829b701f9
* [GWP-ASan] [malloc-tests] Scan GWP-ASan regions in maps.Mitch Phillips2020-02-111-2/+4
| | | | | | | | | | GWP-ASan is part of the native allocator, and may allocate some memory. When GWP-ASan is enabled, the malloc tests need to look inside of GWP-ASan regions as well for native allocations. Bug: 135634846 Test: atest bionic-unit-tests Change-Id: Ibb78f9c9e7e96a437cffce013facd18708799b0e
* Add support for scudo.Christopher Ferris2019-10-021-3/+3
| | | | | | | Bug: 137795072 Test: Unit tests pass on jemalloc and scudo. Change-Id: I764cdad2507d322ff36dd5d28bd8ff9719601e6a
* Use ReadMapFileAsyncSafe in malloc_iterate tests.Christopher Ferris2019-08-231-22/+58
| | | | | | | | | | This avoids issues where an allocation could create a map while trying to check data from the maps and running malloc_iterate. Bug: 137795072 Test: Runs in unit tests. Change-Id: If8509845d86dd9d002aeac3aa9278fbcf026af17
* bionic tests: use GTEST_SKIP.Elliott Hughes2019-03-121-4/+4
| | | | | | | | Also be a bit more to the point in our messages, focusing on "why" not "what". Test: ran tests Change-Id: I297806c7a102bd52602dcd2fcf7a2cd34aba3a11
* bionic/malloc_iterate_test: Adjust callback for procinfo::ReadMapFileSandeep Patil2019-02-101-16/+18
| | | | | | | | Bug: 123532375 Test: Builds Change-Id: I8e782d9050b4d6a0726e8c880d4064df99c763e5 Signed-off-by: Sandeep Patil <sspatil@google.com>
* Disable a few bionic tests under HWASan.Evgenii Stepanov2018-11-061-0/+6
| | | | | | | | | | | | | | | | | * HWASan report invalid use of the allocator api (like alignment not being power of two, or allocation size too large) in a way tests do not expect. * Code in .preinit_array runs before HWASan shadow is initialized and needs to be excluded from instrumentation. * It looks that mm system calls (mmap/mprotect/etc) will not allow tagged pointers. In fact, the use of mprotect on malloc()ed memory is doubtful - one can imagine some kind of speculative load from such memory, as compiler knows that it is addressable. Bug: 114279110 Test: bionic-unit-tests with hwasan Change-Id: I6ba4b46a0d554de77c923ad134cf156ce4ddba1b
* Add test for malloc_iterate.Christopher Ferris2018-10-301-0/+219
Bug: 62621531 Test: New unit tests pass. Change-Id: Icc50f5b19642225c8f812844d42c904babde8acf