We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3af0ff9 commit 747e0d9Copy full SHA for 747e0d9
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
@@ -799,7 +799,7 @@ void Fuzzer::ReadAndExecuteSeedCorpora(std::vector<SizedFile> &CorporaFiles) {
799
TotalSize += File.Size;
800
}
801
if (Options.MaxLen == 0)
802
- SetMaxInputLen(std::min(std::max(kMinDefaultLen, MaxSize), kMaxSaneLen));
+ SetMaxInputLen(std::clamp(MaxSize, kMinDefaultLen, kMaxSaneLen));
803
assert(MaxInputLen > 0);
804
805
// Test the callback with empty input and never try it again.
0 commit comments