[GWP-ASan] Add aligned allocations.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 8 Feb 2021 18:46:45 +0000 (10:46 -0800)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Mon, 8 Feb 2021 19:22:29 +0000 (11:22 -0800)
commit3d8823b8e48a3f064b1e2dd52881b3ac581f6f2b
tree38bfef725bf9b0059a222cc6f2bedfba07a4ae9b
parentf31ea86c808cbd841a348e35eb548b0046c8fdf7
[GWP-ASan] Add aligned allocations.

Adds a new allocation API to GWP-ASan that handles size+alignment
restrictions.

Reviewed By: cryptoad, eugenis

Differential Revision: https://reviews.llvm.org/D94830
13 files changed:
compiler-rt/lib/gwp_asan/CMakeLists.txt
compiler-rt/lib/gwp_asan/common.cpp
compiler-rt/lib/gwp_asan/common.h
compiler-rt/lib/gwp_asan/crash_handler.cpp
compiler-rt/lib/gwp_asan/guarded_pool_allocator.cpp
compiler-rt/lib/gwp_asan/guarded_pool_allocator.h
compiler-rt/lib/gwp_asan/options.inc
compiler-rt/lib/gwp_asan/tests/alignment.cpp
compiler-rt/lib/gwp_asan/tests/basic.cpp
compiler-rt/lib/gwp_asan/tests/crash_handler_api.cpp
compiler-rt/lib/gwp_asan/utilities.cpp [deleted file]
compiler-rt/lib/gwp_asan/utilities.h
compiler-rt/lib/scudo/standalone/combined.h