aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-07-11 15:57:23 +0200
committerAleksandr Nogikh <nogikh@google.com>2024-07-11 14:19:02 +0000
commit3cf1187a067e9bb9d9a3fe079e6942abb526ddb2 (patch)
treed5eafed52178d92855b3eabeaeb28b95ddaa3639
parentb6d5ea79ef2cf0e6a36f4c5b64b0c5b4e9b921fd (diff)
syz-manager: add a missing nil check
We should expect popCrash() to return nil.
-rw-r--r--syz-manager/repro.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-manager/repro.go b/syz-manager/repro.go
index 9edf102c4..95859a163 100644
--- a/syz-manager/repro.go
+++ b/syz-manager/repro.go
@@ -150,7 +150,7 @@ func (m *reproManager) Loop(ctx context.Context) {
case <-ctx.Done():
return
}
- if !m.mgr.needRepro(crash) {
+ if crash == nil || !m.mgr.needRepro(crash) {
continue
}
}