| 8 | const std::string InputMutator::DefaultEntryName = "fuzz_entry.cc"; |
| 9 | |
| 10 | void InputMutator::initFromFuzzer(const Fuzzer &F, |
| 11 | const SourceAnalysisReport &SourceReport) { |
| 12 | for (auto IDInput : F.getFuzzInputMap()) { |
| 13 | auto FuzzingInput = IDInput.second; |
| 14 | assert(FuzzingInput && "Unexpected Program State"); |
| 15 | if (FuzzingInput->getCopyFrom()) |
| 16 | continue; |
| 17 | addInput(*FuzzingInput); |
| 18 | } |
| 19 | auto UTHeaders = SourceReport.getIncludedHeaders(F.getUT().getFilePath()); |
| 20 | DependentHeaders.insert(DependentHeaders.end(), UTHeaders.begin(), |
| 21 | UTHeaders.end()); |
| 22 | } |
| 23 | |
| 24 | std::vector<std::string> InputMutator::getHeaders() const { |
| 25 | auto Result = DependentHeaders; |
no test coverage detected