Skip to content

Commit

Permalink
Update libFuzzer to llvm/llvm-project@60e32a1
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Jan 24, 2022
1 parent a89115a commit 689ed3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions libfuzzer/FuzzerInterceptors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
}

#include <cassert>
#include <cstddef> // for size_t
#include <cstdint>
#include <dlfcn.h> // for dlsym()

Expand Down
6 changes: 2 additions & 4 deletions libfuzzer/dataflow/DataFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@
// and also provides basic-block coverage for every input.
//
// Build:
// 1. Compile this file (DataFlow.cpp) with -fsanitize=dataflow -mllvm
// -dfsan-fast-16-labels and -O2.
// 1. Compile this file (DataFlow.cpp) with -fsanitize=dataflow and -O2.
// 2. Compile DataFlowCallbacks.cpp with -O2 -fPIC.
// 3. Build the fuzz target with -g -fsanitize=dataflow
// -mllvm -dfsan-fast-16-labels
// -fsanitize-coverage=trace-pc-guard,pc-table,bb,trace-cmp
// 4. Link those together with -fsanitize=dataflow
//
Expand Down Expand Up @@ -82,7 +80,7 @@ static inline bool BlockIsEntry(size_t BlockIdx) {
return __dft.PCsBeg[BlockIdx * 2 + 1] & PCFLAG_FUNC_ENTRY;
}

const int kNumLabels = 16;
const int kNumLabels = 8;

// Prints all instrumented functions.
static int PrintFunctions() {
Expand Down

0 comments on commit 689ed3f

Please sign in to comment.