Skip to content

Commit

Permalink
apply mutations to corpus before sequence generation
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Sep 6, 2024
1 parent a77fc25 commit f1fa669
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 167 deletions.
20 changes: 9 additions & 11 deletions fuzzing/fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -569,17 +569,15 @@ func defaultCallSequenceGeneratorConfigFunc(fuzzer *Fuzzer, valueSet *valuegener

// Create a sequence generator config which uses the created value generator.
sequenceGenConfig := &CallSequenceGeneratorConfig{
NewSequenceProbability: 0.3,
RandomUnmodifiedCorpusHeadWeight: 800,
RandomUnmodifiedCorpusTailWeight: 100,
RandomUnmodifiedSpliceAtRandomWeight: 200,
RandomUnmodifiedInterleaveAtRandomWeight: 100,
RandomMutatedCorpusHeadWeight: 80,
RandomMutatedCorpusTailWeight: 10,
RandomMutatedSpliceAtRandomWeight: 20,
RandomMutatedInterleaveAtRandomWeight: 10,
ValueGenerator: mutationalGenerator,
ValueMutator: mutationalGenerator,
NewSequenceProbability: 0.3,
Prepend: 800,
Append: 200,
Splice: 100,
Interleave: 100,
PrependAndMutate: 100,
AppendAndMutate: 100,
ValueGenerator: mutationalGenerator,
ValueMutator: mutationalGenerator,
}
return sequenceGenConfig, nil
}
Expand Down
Loading

0 comments on commit f1fa669

Please sign in to comment.