diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-05-16 18:36:49 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-05-17 08:46:55 +0000 |
| commit | 58cb0f51f67675dfee01d78c54c8bdd4ed1fbe90 (patch) | |
| tree | c748a7185004bc06f6326e8813507c1960e17815 | |
| parent | 15846cbccf63a4e74cce5b8cf0c1931fdcf81ccd (diff) | |
syz-manager: don't distribute empty signal
It's likely we don't have any new signal every 0.5 seconds,
so don't iterate the sync map and append if we have no signal.
| -rw-r--r-- | syz-manager/manager.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/syz-manager/manager.go b/syz-manager/manager.go index 1b77c7b2f..460c65ba7 100644 --- a/syz-manager/manager.go +++ b/syz-manager/manager.go @@ -1430,7 +1430,9 @@ func (mgr *Manager) fuzzerLoop(fuzzer *fuzzer.Fuzzer) { newSignal, dropSignal := fuzzer.Cover.GrabSignalDelta() log.Logf(2, "distributing %d new signal, %d dropped signal", len(newSignal), len(dropSignal)) - mgr.serv.distributeSignalDelta(newSignal, dropSignal) + if len(newSignal)+len(dropSignal) != 0 { + mgr.serv.distributeSignalDelta(newSignal, dropSignal) + } // Update the state machine. if fuzzer.StatCandidates.Val() == 0 { |
