[PATCH] D24490: [asan] Add another use cases can we previously get false reports
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 15 18:45:56 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL281687: [asan] Remove the test as the fix is going to be removed (authored by vitalybuka).
Changed prior to commit:
https://reviews.llvm.org/D24490?vs=71587&id=71588#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24490
Files:
compiler-rt/trunk/test/asan/TestCases/use-after-scope-goto.c
Index: compiler-rt/trunk/test/asan/TestCases/use-after-scope-goto.c
===================================================================
--- compiler-rt/trunk/test/asan/TestCases/use-after-scope-goto.c
+++ compiler-rt/trunk/test/asan/TestCases/use-after-scope-goto.c
@@ -1,21 +0,0 @@
-// RUN: %clang_asan -O0 -fsanitize-address-use-after-scope %s -o %t && %run %t
-
-// Function jumps over variable initialization making lifetime analysis
-// ambiguous. Asan should ignore such variable and program must not fail.
-
-int *ptr;
-
-void f(int cond) {
- if (cond)
- goto label;
- int tmp = 1;
-
-label:
- ptr = &tmp;
- *ptr = 5;
-}
-
-int main() {
- f(1);
- return 0;
-}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24490.71588.patch
Type: text/x-patch
Size: 676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160916/f9a461f7/attachment.bin>
More information about the llvm-commits
mailing list