[PATCH] D21509: [asan] fix false dynamic-stack-buffer-overflow report with constantly-sized dynamic allocas

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 04:30:08 PDT 2016


kubabrecka updated this revision to Diff 61248.
kubabrecka added a comment.

Update patch to correctly calculate the size of the dynamic alloca.  Added `-fstack-protector` to the test cases.


http://reviews.llvm.org/D21509

Files:
  lib/Transforms/Instrumentation/AddressSanitizer.cpp
  projects/compiler-rt/test/asan/TestCases/alloca_constant_size.cc
  projects/compiler-rt/test/asan/TestCases/alloca_constant_size2.cc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21509.61248.patch
Type: text/x-patch
Size: 3349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160620/c4026b04/attachment.bin>


More information about the llvm-commits mailing list