mirror of
https://github.com/golang/go
synced 2024-11-24 11:50:15 -07:00
internal/fuzz: tiny refactor+fix
Change-Id: I8db9c31ead3e5905b7f9d1faed36555e8aaa00cd Reviewed-on: https://go-review.googlesource.com/c/go/+/358054 Trust: Katie Hockman <katie@golang.org> Run-TryBot: Katie Hockman <katie@golang.org> Reviewed-by: Julie Qiu <julie@golang.org> TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
parent
76cef81bcf
commit
1dc77a38d2
@ -702,7 +702,7 @@ func (c *coordinator) logStats() {
|
||||
interestingTotalCount := int64(c.warmupInputCount-len(c.opts.Seed)) + c.interestingCount
|
||||
fmt.Fprintf(c.opts.Log, "fuzz: elapsed: %s, execs: %d (%.0f/sec), new interesting: %d (total: %d)\n", c.elapsed(), c.count, rate, c.interestingCount, interestingTotalCount)
|
||||
} else {
|
||||
fmt.Fprintf(c.opts.Log, "fuzz: elapsed: %s, execs: %d (%.0f/sec)", c.elapsed(), c.count, rate)
|
||||
fmt.Fprintf(c.opts.Log, "fuzz: elapsed: %s, execs: %d (%.0f/sec)\n", c.elapsed(), c.count, rate)
|
||||
}
|
||||
}
|
||||
c.countLastLog = c.count
|
||||
|
@ -1088,7 +1088,7 @@ func (wc *workerClient) fuzz(ctx context.Context, entryIn CorpusEntry, args fuzz
|
||||
wc.m.r.restore(mem.header().randState, mem.header().randInc)
|
||||
if !args.Warmup {
|
||||
// Only mutate the valuesOut if fuzzing actually occurred.
|
||||
for i := int64(0); i < mem.header().count; i++ {
|
||||
for i := int64(0); i < resp.Count; i++ {
|
||||
wc.m.mutate(valuesOut, cap(mem.valueRef()))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user