Author: morehouse Date: Fri Aug 25 14:18:29 2017 New Revision: 311801 URL: http://llvm.org/viewvc/llvm-project?rev=311801&view=rev Log: [SanitizeCoverage] Enable stack-depth coverage for -fsanitize=fuzzer
Summary: - Don't sanitize __sancov_lowest_stack. - Don't instrument leaf functions. - Add CoverageStackDepth to Fuzzer and FuzzerNoLink. Reviewers: vitalybuka, kcc Reviewed By: kcc Subscribers: cfe-commits, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D37156 Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp Modified: cfe/trunk/lib/Driver/SanitizerArgs.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/SanitizerArgs.cpp?rev=311801&r1=311800&r2=311801&view=diff ============================================================================== --- cfe/trunk/lib/Driver/SanitizerArgs.cpp (original) +++ cfe/trunk/lib/Driver/SanitizerArgs.cpp Fri Aug 25 14:18:29 2017 @@ -290,10 +290,11 @@ SanitizerArgs::SanitizerArgs(const ToolC if (Add & Fuzzer) Add |= FuzzerNoLink; - // Enable coverage if the fuzzing flag is set. + // Enable coverage and stack depth tracking if the fuzzing flag is set. if (Add & FuzzerNoLink) CoverageFeatures |= CoverageTracePCGuard | CoverageIndirCall | - CoverageTraceCmp | CoveragePCTable; + CoverageTraceCmp | CoveragePCTable | + CoverageStackDepth; Kinds |= Add; } else if (Arg->getOption().matches(options::OPT_fno_sanitize_EQ)) { _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits