[LLVMbugs] [Bug 22431] New: Using -fsanitize-blacklist=file.txt disables the default ASan blacklist

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 2 04:55:35 PST 2015


http://llvm.org/bugs/show_bug.cgi?id=22431

            Bug ID: 22431
           Summary: Using -fsanitize-blacklist=file.txt disables the
                    default ASan blacklist
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: timurrrr at google.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This change fails at r227799:
diff --git test/asan/TestCases/Windows/iostream_sbo.cc
test/asan/TestCases/Windows/iostream_sbo.cc
index 96a8b80..ffcd530 100644
--- test/asan/TestCases/Windows/iostream_sbo.cc
+++ test/asan/TestCases/Windows/iostream_sbo.cc
@@ -1,5 +1,10 @@
+// First, check this works with the default blacklist:
 // RUN: %clang_cl_asan -O0 %s -Fe%t
 // RUN: echo "42" | %run %t 2>&1 | FileCheck %s
+//
+// Then, make sure it still works when a user uses his own blacklist file:
+// RUN: %clang_cl_asan -O0 %s
-fsanitize-blacklist=%p/../Helpers/initialization-blacklist.txt -Fe%t2
+// RUN: echo "42" | %run %t2 2>&1 | FileCheck %s

 #include <iostream>

Please note the default blacklist for windows is not empty due to
http://goo.gl/L4qqUG

I'd argue that ASan should merge the user-specified blacklist with the default
one rather than just replace.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150202/ae4b5b63/attachment.html>


More information about the llvm-bugs mailing list