[PATCH] Implement variable-sized alloca instrumentation.

Maxim Ostapenko m.ostapenko at partner.samsung.com
Fri Nov 14 06:21:49 PST 2014


Updated patch. Major changes are:

1) (Un)poisoning is inline now.
2) Added test to check instrumentation (with/without alloca instrumentation, default behavior).
3) Add test to check that all 32 values of padding are handled correctly.
4) Big-endian is now "supported", but I unable to test it, sorry.

http://reviews.llvm.org/D6055

Files:
  lib/Transforms/Instrumentation/AddressSanitizer.cpp
  lib/asan/asan_internal.h
  lib/asan/asan_report.cc
  test/Instrumentation/AddressSanitizer/instrument-dynamic-allocas.ll
  test/asan/TestCases/alloca_big_alignment.cc
  test/asan/TestCases/alloca_detect_custom_size_.cc
  test/asan/TestCases/alloca_instruments_all_paddings.cc
  test/asan/TestCases/alloca_overflow_partial.cc
  test/asan/TestCases/alloca_overflow_right.cc
  test/asan/TestCases/alloca_safe_access.cc
  test/asan/TestCases/alloca_underflow_left.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6055.16207.patch
Type: text/x-patch
Size: 20085 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141114/25c45f93/attachment.bin>


More information about the llvm-commits mailing list