[PATCH] D53789: [hwasan] optionally right-align heap allocations

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 26 18:17:06 PDT 2018


kcc created this revision.
kcc added a reviewer: eugenis.
Herald added subscribers: Sanitizers, delcypher, kubamracek.

... so that we can find intra-granule buffer overflows.
The default is still to always align left.
It remains to be seen wether we can enable this mode at scale.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D53789

Files:
  lib/hwasan/hwasan_allocator.cc
  lib/hwasan/hwasan_allocator.h
  lib/hwasan/hwasan_flags.inc
  test/hwasan/TestCases/heap-buffer-overflow.c
  test/hwasan/TestCases/use-after-free.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53789.171384.patch
Type: text/x-patch
Size: 8193 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181027/7262fec9/attachment.bin>


More information about the llvm-commits mailing list