[llvm-commits] [PATCH] AddressSanitizer: runtime support for use-after-scope bugs.

Alexey Samsonov samsonov at google.com
Tue Nov 27 14:06:46 PST 2012


Hi kcc,

This patch adds new type of bugs detected by ASan: use-after-scope.
See D140 in phabricator that would use functionality added in this patch.
Currently these two patches are only able to find "use-after-scope"
bugs that happen due to function inlining. We would be able to find
actual use-after-scope errors after teaching Clang to optionally
emit llvm.lifetime intrinsics for local variables.

http://llvm-reviews.chandlerc.com/D141

Files:
  lib/asan/asan_rtl.cc
  lib/asan/asan_poisoning.cc
  lib/asan/asan_report.cc
  lib/asan/asan_internal.h
  lib/asan/lit_tests/use-after-scope-inlined.cc
  include/sanitizer/asan_interface.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141.1.patch
Type: text/x-patch
Size: 8062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121127/f5f50ed4/attachment.bin>


More information about the llvm-commits mailing list