commit | d701d9e213d3d7149ff9739a8b385ab3a0c02962 | [log] [tgz] |
---|---|---|
author | kcc <kcc> | Thu May 23 00:22:46 2019 +0000 |
committer | kcc <kcc> | Thu May 23 00:22:46 2019 +0000 |
tree | 598283b3fa907db26f9ef5667c0e0905e94e6234 | |
parent | ed73fdffdc11e9c73f217c11199cc98e3cbce8cd [diff] [blame] |
[libFuzzer] automatically collect the data flow trace (DFT) in the fork mode if -collect_data_flow= is given git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk/lib/fuzzer@361448 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/FuzzerDataFlowTrace.cpp b/FuzzerDataFlowTrace.cpp index 975a98a..74bfa8f 100644 --- a/FuzzerDataFlowTrace.cpp +++ b/FuzzerDataFlowTrace.cpp
@@ -174,6 +174,8 @@ if (*FocusFunction == L) FocusFuncIdx = NumFunctions - 1; } + if (!NumFunctions) + return false; if (*FocusFunction == "auto") { // AUTOFOCUS works like this: