Home
last modified time | relevance | path

Searched refs:MaxInputLen (Results 1 – 3 of 3) sorted by relevance

/third_party/json/tests/thirdparty/Fuzzer/
DFuzzerLoop.cpp196 MaxInputLen = MaxMutationLen = Options.MaxLen; in Fuzzer()
205 if (CurrentUnitData || MaxInputLen == 0) return; in AllocateCurrentUnitData()
206 CurrentUnitData = new uint8_t[MaxInputLen]; in AllocateCurrentUnitData()
391 void Fuzzer::SetMaxInputLen(size_t MaxInputLen) { in SetMaxInputLen() argument
392 assert(this->MaxInputLen == 0); // Can only reset MaxInputLen from 0 to non-0. in SetMaxInputLen()
393 assert(MaxInputLen); in SetMaxInputLen()
394 this->MaxInputLen = MaxInputLen; in SetMaxInputLen()
395 this->MaxMutationLen = MaxInputLen; in SetMaxInputLen()
397 Printf("INFO: -max_len is not provided, using %zd\n", MaxInputLen); in SetMaxInputLen()
401 assert(MaxMutationLen && MaxMutationLen <= MaxInputLen); in SetMaxMutationLen()
[all …]
DFuzzerInternal.h98 void SetMaxInputLen(size_t MaxInputLen);
171 size_t MaxInputLen = 0; variable
DFuzzerMerge.cpp180 if (U.size() > MaxInputLen) { in CrashResistantMergeInternalStep()
181 U.resize(MaxInputLen); in CrashResistantMergeInternalStep()