summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerMerge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMerge.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerMerge.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMerge.cpp b/llvm/lib/Fuzzer/FuzzerMerge.cpp
index 855eef8ffc6..38479953a77 100644
--- a/llvm/lib/Fuzzer/FuzzerMerge.cpp
+++ b/llvm/lib/Fuzzer/FuzzerMerge.cpp
@@ -176,8 +176,8 @@ void Fuzzer::CrashResistantMergeInternalStep(const std::string &CFPath) {
std::ofstream OF(CFPath, std::ofstream::out | std::ofstream::app);
for (size_t i = M.FirstNotProcessedFile; i < M.Files.size(); i++) {
auto U = FileToVector(M.Files[i].Name);
- if (U.size() > Options.MaxLen) {
- U.resize(Options.MaxLen);
+ if (U.size() > MaxInputLen) {
+ U.resize(MaxInputLen);
U.shrink_to_fit();
}
std::ostringstream StartedLine;
OpenPOWER on IntegriCloud