mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-15 00:57:35 +00:00
manager: fix persistent corpus minimization
This commit is contained in:
parent
7b5574e9d7
commit
bfc05fb926
@ -4,6 +4,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/rpc"
|
||||
@ -124,7 +125,7 @@ func (mgr *Manager) minimizeCorpus() {
|
||||
hashes := make(map[string]bool)
|
||||
for _, inp := range mgr.corpus {
|
||||
h := hash(inp.Prog)
|
||||
hashes[string(h[:])] = true
|
||||
hashes[hex.EncodeToString(h[:])] = true
|
||||
}
|
||||
mgr.persistentCorpus.minimize(hashes)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user