aboutsummaryrefslogtreecommitdiffstats
path: root/syz-manager/hub.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2024-08-16 16:34:01 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-08-16 15:17:33 +0000
commitdbc93b085f18cf00b6c0e077c902b5f83ecbe76c (patch)
tree767e4b9151e51c1009799448073c7758afceb11f /syz-manager/hub.go
parent76120936f2d7ff5d4222671f6965fb2c2d258217 (diff)
syz-manager: define a reminimization threshold
Let it be equal to 15 calls for now. Don't reminimize corpus programs that have fewer calls. Always reminimize hub programs that no less calls.
Diffstat (limited to 'syz-manager/hub.go')
-rw-r--r--syz-manager/hub.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syz-manager/hub.go b/syz-manager/hub.go
index 75ac8f6a0..5fd2356f6 100644
--- a/syz-manager/hub.go
+++ b/syz-manager/hub.go
@@ -245,7 +245,7 @@ func (hc *HubConnector) processProgs(inputs []rpctype.HubInput) (minimized, smas
}
min, smash := matchDomains(hc.domain, inp.Domain)
var flags fuzzer.ProgFlags
- if min {
+ if min && len(p.Calls) < reminimizeThreshold {
minimized++
flags |= fuzzer.ProgMinimized
}