Lines Matching full:addresssanitizer
1 //===-- AddressSanitizer.cpp - memory error detector ------------*- C++ -*-===//
10 // This file is a part of AddressSanitizer, an address sanity checker.
130 /// AddressSanitizer: instrument the code in module to find memory bugs.
131 struct AddressSanitizer : public ModulePass {
132 AddressSanitizer();
188 char AddressSanitizer::ID = 0;
189 INITIALIZE_PASS(AddressSanitizer, "asan",
190 "AddressSanitizer: detects use-after-free and out-of-bounds bugs.",
192 AddressSanitizer::AddressSanitizer() : ModulePass(ID) { }
194 return new AddressSanitizer();
197 const char *AddressSanitizer::getPassName() const {
198 return "AddressSanitizer";
221 BranchInst *AddressSanitizer::splitBlockAndInsertIfThen(
237 Value *AddressSanitizer::memToShadow(Value *Shadow, IRBuilder<> &IRB) {
247 void AddressSanitizer::instrumentMemIntrinsicParam(Instruction *OrigIns,
267 bool AddressSanitizer::instrumentMemIntrinsic(MemIntrinsic *MI) {
299 void AddressSanitizer::instrumentMop(Instruction *I) {
322 Instruction *AddressSanitizer::generateCrashCode(
334 void AddressSanitizer::instrumentAddress(Instruction *OrigIns,
379 bool AddressSanitizer::insertGlobalRedzones(Module &M) {
535 bool AddressSanitizer::runOnModule(Module &M) {
616 bool AddressSanitizer::maybeInsertAsanInitAtFunctionEntry(Function &F) {
632 bool AddressSanitizer::handleFunction(Module &M, Function &F) {
735 void AddressSanitizer::PoisonStack(const ArrayRef<AllocaInst*> &AllocaVec,
795 bool AddressSanitizer::LooksLikeCodeInBug11395(Instruction *I) {
817 bool AddressSanitizer::poisonStackInFunction(Module &M, Function &F) {