Lines Matching refs:AddressSanitizer
1 //===-- AddressSanitizer.cpp - memory error detector ------------*- C++ -*-===//
10 // This file is a part of AddressSanitizer, an address sanity checker.
447 /// AddressSanitizer: instrument the code in module to find memory bugs.
448 struct AddressSanitizer : public FunctionPass {
449 explicit AddressSanitizer(bool CompileKernel = false, bool Recover = false,
518 AddressSanitizer *Pass;
519 FunctionStateRAII(AddressSanitizer *Pass) : Pass(Pass) {
601 AddressSanitizer &ASan;
640 FunctionStackPoisoner(Function &F, AddressSanitizer &ASan)
802 char AddressSanitizer::ID = 0;
804 AddressSanitizer, "asan",
805 "AddressSanitizer: detects use-after-free and out-of-bounds bugs.", false,
810 AddressSanitizer, "asan",
811 "AddressSanitizer: detects use-after-free and out-of-bounds bugs.", false,
817 return new AddressSanitizer(CompileKernel, Recover, UseAfterScope);
823 "AddressSanitizer: detects use-after-free and out-of-bounds bugs."
883 Value *AddressSanitizer::memToShadow(Value *Shadow, IRBuilder<> &IRB) {
895 void AddressSanitizer::instrumentMemIntrinsic(MemIntrinsic *MI) {
914 bool AddressSanitizer::isInterestingAlloca(AllocaInst &AI) {
937 Value *AddressSanitizer::isInterestingMemoryAccess(Instruction *I,
1009 bool AddressSanitizer::GlobalIsLinkerInitialized(GlobalVariable *G) {
1016 void AddressSanitizer::instrumentPointerComparisonOrSubtraction(
1028 void AddressSanitizer::instrumentMop(ObjectSizeOffsetVisitor &ObjSizeVis,
1087 Instruction *AddressSanitizer::generateCrashCode(Instruction *InsertBefore,
1118 Value *AddressSanitizer::createSlowPathCmp(IRBuilder<> &IRB, Value *AddrLong,
1136 void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
1198 void AddressSanitizer::instrumentUnusualSizeOrAlignment(
1638 void AddressSanitizer::initializeCallbacks(Module &M) {
1698 bool AddressSanitizer::doInitialization(Module &M) {
1719 bool AddressSanitizer::doFinalization(Module &M) {
1724 bool AddressSanitizer::maybeInsertAsanInitAtFunctionEntry(Function &F) {
1740 void AddressSanitizer::markEscapedLocalAllocas(Function &F) {
1768 bool AddressSanitizer::runOnFunction(Function &F) {
1887 bool AddressSanitizer::LooksLikeCodeInBug11395(Instruction *I) {
2359 bool AddressSanitizer::isSafeAccess(ObjectSizeOffsetVisitor &ObjSizeVis,