-
- Downloads
[SanitizerCoverage] Add stack depth tracing instrumentation.
Summary: Augment SanitizerCoverage to insert maximum stack depth tracing for use by libFuzzer. The new instrumentation is enabled by the flag -fsanitize-coverage=stack-depth and is compatible with the existing trace-pc-guard coverage. The user must also declare the following global variable in their code: thread_local uintptr_t __sancov_lowest_stack https://bugs.llvm.org/show_bug.cgi?id=33857 Reviewers: vitalybuka, kcc Reviewed By: vitalybuka Subscribers: kubamracek, hiraditya, cfe-commits, llvm-commits Differential Revision: https://reviews.llvm.org/D36839 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311186 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/CC1Options.td 3 additions, 0 deletionsinclude/clang/Driver/CC1Options.td
- include/clang/Frontend/CodeGenOptions.def 1 addition, 0 deletionsinclude/clang/Frontend/CodeGenOptions.def
- lib/CodeGen/BackendUtil.cpp 1 addition, 0 deletionslib/CodeGen/BackendUtil.cpp
- lib/Driver/SanitizerArgs.cpp 12 additions, 5 deletionslib/Driver/SanitizerArgs.cpp
- lib/Frontend/CompilerInvocation.cpp 2 additions, 0 deletionslib/Frontend/CompilerInvocation.cpp
- test/Driver/fsanitize-coverage.c 11 additions, 0 deletionstest/Driver/fsanitize-coverage.c
Loading
Please register or sign in to comment