mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-26 22:55:47 +00:00
syz-fuzzer: prefer to mutate instead of generate
Currently we generate 1 program per 9 mutations. Do it per 99 mutations. Benchmark shows both coverage increase and corpus reduction: baseline generate100 diff coverage 65467 65569 102 corpus 35423 35363 -60 exec total 5474879 5030990 -443889
This commit is contained in:
parent
c4901df5c3
commit
1451a9b65d
@ -216,7 +216,7 @@ func main() {
|
||||
}
|
||||
|
||||
corpusMu.RLock()
|
||||
if len(corpus) == 0 || i%10 == 0 {
|
||||
if len(corpus) == 0 || i%100 == 0 {
|
||||
// Generate a new prog.
|
||||
corpusMu.RUnlock()
|
||||
p := prog.Generate(rnd, programLength, ct)
|
||||
|
Loading…
x
Reference in New Issue
Block a user