[PATCH] D74364: [GWP-ASan] Update alignment on Android.

Mitch Phillips via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 10 15:10:18 PST 2020


hctim created this revision.
hctim added reviewers: eugenis, morehouse, cferris.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

Android has different alignment requirements. You can read more about
them here
(https://cs.android.com/android/platform/superproject/+/master:bionic/tests/malloc_test.cpp;l=808),
but the general gist is that for malloc(x <= 8), we do malloc(8), and
for everything else, we do 16-byte alignment.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74364

Files:
  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/platform_specific/utilities_posix.cpp
  compiler-rt/lib/gwp_asan/tests/alignment.cpp
  compiler-rt/lib/gwp_asan/utilities.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74364.243687.patch
Type: text/x-patch
Size: 8876 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200210/d5819268/attachment.bin>


More information about the llvm-commits mailing list