diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-10-14 15:26:12 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-10-14 19:43:15 +0000 |
| commit | 56381a3b0c5178a73a7ad714a54dab5ab47e0ffa (patch) | |
| tree | d62feb1fcd398ab524b76c8aaedb1278a9c20f3b /pkg/runtest/run.go | |
| parent | 25a669a944a3f6c35bfb05123e5cd2215fd5d23b (diff) | |
pkg/runtest: rely on pkg/manager seed loading logic
It will help us catch broken seeds right in TestParse().
Diffstat (limited to 'pkg/runtest/run.go')
| -rw-r--r-- | pkg/runtest/run.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index eb1d0b131..1ea5c7a7e 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -26,6 +26,7 @@ import ( "github.com/google/syzkaller/pkg/csource" "github.com/google/syzkaller/pkg/flatrpc" "github.com/google/syzkaller/pkg/fuzzer/queue" + "github.com/google/syzkaller/pkg/manager" "github.com/google/syzkaller/prog" "github.com/google/syzkaller/sys/targets" ) @@ -310,7 +311,7 @@ func parseProg(target *prog.Target, dir, filename string, requires map[string]bo if !checkArch(properties, target.Arch) || !match(properties, requires) { return nil, nil, nil, nil } - p, err := target.Deserialize(data, prog.Strict) + p, err := manager.ParseSeedStrict(target, data) if err != nil { return nil, nil, nil, fmt.Errorf("failed to deserialize %v: %w", filename, err) } |
