From 865ef71e5889541e7310ee9b3da3a945f354da8b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 28 Jan 2025 11:38:19 +0100 Subject: syz-cluster/controller: handle a channel closure If we don't consider the possibility, we risk processing a nil value and causing a nil pointer dereference. --- syz-cluster/controller/processor.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syz-cluster/controller/processor.go b/syz-cluster/controller/processor.go index 6a36a7551..1493b5852 100644 --- a/syz-cluster/controller/processor.go +++ b/syz-cluster/controller/processor.go @@ -120,6 +120,9 @@ func (sp *SeriesProcessor) seriesRunner(ctx context.Context, ch <-chan *db.Sessi var session *db.Session select { case session = <-ch: + if session == nil { + return + } case <-ctx.Done(): return } -- cgit mrf-deployment