diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2015-12-17 17:10:14 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2015-12-17 17:31:11 +0100 |
| commit | bfc05fb926e5004fbe1b7dae29c44d8e301b2b72 (patch) | |
| tree | b1e13a9ee7f7f71ba1866c056009a59012f4aca9 | |
| parent | 7b5574e9d7da9b1bbbf8481685c9e723926713fd (diff) | |
manager: fix persistent corpus minimization
| -rw-r--r-- | syz-manager/manager.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/syz-manager/manager.go b/syz-manager/manager.go index e2b29cdd3..485563603 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -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) } |
