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

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 15 11:50:23 PST 2018


kcc updated this revision to Diff 174263.
kcc added a comment.
Herald added a subscriber: jfb.

Added two more modes for malloc_align_right to allow 8-byte alignment
(randomly or always).
Extended comments, added one more test.

PTAL


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/random-align-right.c
  test/hwasan/TestCases/use-after-free.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53789.174263.patch
Type: text/x-patch
Size: 12736 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181115/08f6eb81/attachment.bin>


More information about the llvm-commits mailing list