aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/bisect/bisect.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-07-06 19:41:38 +0200
committerAleksandr Nogikh <nogikh@google.com>2023-07-07 09:59:51 +0000
commit5142e5aa3b3f41019136f156bc9ece61c0a17f42 (patch)
treef26a24f616e5754d95846efb3fda3f9ea003e64a /pkg/bisect/bisect.go
parent22ae5830af1ab04e8042e534dd9baf750bc0d0ac (diff)
pkg/bisect: fix SYZFATAL bisections
After the previous change, pkg/bisect is unable to bisect SYZFATAL errors. Fix the bug in the logic and add a test.
Diffstat (limited to 'pkg/bisect/bisect.go')
-rw-r--r--pkg/bisect/bisect.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/bisect/bisect.go b/pkg/bisect/bisect.go
index 9668144ef..3044ae081 100644
--- a/pkg/bisect/bisect.go
+++ b/pkg/bisect/bisect.go
@@ -803,7 +803,8 @@ func (env *env) isTransientError(rep *report.Report) bool {
for _, t := range env.reportTypes {
hadSyzFailure = hadSyzFailure || t == crash.SyzFailure
}
- return rep.Type == crash.SyzFailure && !hadSyzFailure
+ return rep.Type == crash.SyzFailure &&
+ len(env.reportTypes) > 0 && !hadSyzFailure
}
func (env *env) saveDebugFile(hash string, idx int, data []byte) {