mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-28 13:50:52 +00:00
syz-manager: don't create legacy corpus dir if it does not exist
This commit is contained in:
parent
d870ba3969
commit
f9869965cf
@ -19,6 +19,9 @@ import (
|
||||
// This code is left here to convert old corpuses to the new format.
|
||||
// It needs to be delete in Mar 2017.
|
||||
func convertPersistentToDB(persistentDir, dbFilename string) error {
|
||||
if _, err := os.Stat(persistentDir); err != nil {
|
||||
return nil
|
||||
}
|
||||
persistentCorpus := newPersistentSet(persistentDir, func(data []byte) bool {
|
||||
if _, err := prog.Deserialize(data); err != nil {
|
||||
Logf(0, "deleting broken program: %v\n%s", err, data)
|
||||
|
Loading…
Reference in New Issue
Block a user