https://llvm.org/bugs/show_bug.cgi?id=31583
Bug ID: 31583
Summary: libFuzzer shouldn't disable default mutators when a
custom one is defined
Product: new-bugs
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Currently, libFuzzer disables all default mutators and only the custom mutator,
if one is defined. We're currently applying the patch below to get the default
ones back when building against libFuzzer:
> diff --git libFuzzer/FuzzerMutate.cpp libFuzzer/FuzzerMutate.cpp
> --- libFuzzer/FuzzerMutate.cpp
> +++ libFuzzer/FuzzerMutate.cpp
> @@ -52,10 +52,9 @@
> DefaultMutators.push_back(
> {&MutationDispatcher::Mutate_AddWordFromTORC, "CMP"});
>
> + Mutators = DefaultMutators;
> if (EF->LLVMFuzzerCustomMutator)
> Mutators.push_back({&MutationDispatcher::Mutate_Custom, "Custom"});
> - else
> - Mutators = DefaultMutators;
>
> if (EF->LLVMFuzzerCustomCrossOver)
> Mutators.push_back(
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs