syz-manager: don't create legacy corpus dir if it does not exist

This commit is contained in:
Dmitry Vyukov 2017-01-20 11:48:15 +01:00
parent d870ba3969
commit f9869965cf

View File

@ -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)