diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-07-11 15:57:23 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-07-11 14:19:02 +0000 |
| commit | 3cf1187a067e9bb9d9a3fe079e6942abb526ddb2 (patch) | |
| tree | d5eafed52178d92855b3eabeaeb28b95ddaa3639 /syz-manager | |
| parent | b6d5ea79ef2cf0e6a36f4c5b64b0c5b4e9b921fd (diff) | |
syz-manager: add a missing nil check
We should expect popCrash() to return nil.
Diffstat (limited to 'syz-manager')
| -rw-r--r-- | syz-manager/repro.go | 2 |
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 } } |
