Skip to content

Commit 1687869

Browse files
committed
apply mutations to corpus before sequence generation
1 parent a77fc25 commit 1687869

File tree

3 files changed

+108
-167
lines changed

3 files changed

+108
-167
lines changed

Diff for: fuzzing/fuzzer.go

+9-11
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,15 @@ func defaultCallSequenceGeneratorConfigFunc(fuzzer *Fuzzer, valueSet *valuegener
569569

570570
// Create a sequence generator config which uses the created value generator.
571571
sequenceGenConfig := &CallSequenceGeneratorConfig{
572-
NewSequenceProbability: 0.3,
573-
RandomUnmodifiedCorpusHeadWeight: 800,
574-
RandomUnmodifiedCorpusTailWeight: 100,
575-
RandomUnmodifiedSpliceAtRandomWeight: 200,
576-
RandomUnmodifiedInterleaveAtRandomWeight: 100,
577-
RandomMutatedCorpusHeadWeight: 80,
578-
RandomMutatedCorpusTailWeight: 10,
579-
RandomMutatedSpliceAtRandomWeight: 20,
580-
RandomMutatedInterleaveAtRandomWeight: 10,
581-
ValueGenerator: mutationalGenerator,
582-
ValueMutator: mutationalGenerator,
572+
NewSequenceProbability: 0.3,
573+
Prepend: 800,
574+
Append: 200,
575+
Splice: 100,
576+
Interleave: 100,
577+
PrependAndMutate: 100,
578+
AppendAndMutate: 100,
579+
ValueGenerator: mutationalGenerator,
580+
ValueMutator: mutationalGenerator,
583581
}
584582
return sequenceGenConfig, nil
585583
}

0 commit comments

Comments
 (0)