[llvm] r206756 - [asan] add a run-time flag detect_container_overflow=true/false

Kostya Serebryany kcc at google.com
Mon Apr 21 07:35:00 PDT 2014


Author: kcc
Date: Mon Apr 21 09:35:00 2014
New Revision: 206756

URL: http://llvm.org/viewvc/llvm-project?rev=206756&view=rev
Log:
[asan] add a run-time flag detect_container_overflow=true/false

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=206756&r1=206755&r2=206756&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Mon Apr 21 09:35:00 2014
@@ -155,7 +155,7 @@ static cl::opt<int> ClInstrumentationWit
        cl::desc("If the function being instrumented contains more than "
                 "this number of memory accesses, use callbacks instead of "
                 "inline checks (-1 means never use callbacks)."),
-       cl::Hidden, cl::init(-1));
+       cl::Hidden, cl::init(10000));
 static cl::opt<std::string> ClMemoryAccessCallbackPrefix(
        "asan-memory-access-callback-prefix",
        cl::desc("Prefix for memory access callbacks"), cl::Hidden,





More information about the llvm-commits mailing list