aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/fuzzer/prio_queue.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/fuzzer/prio_queue.go')
-rw-r--r--pkg/fuzzer/prio_queue.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/fuzzer/prio_queue.go b/pkg/fuzzer/prio_queue.go
index cb35cebf7..c67b6216c 100644
--- a/pkg/fuzzer/prio_queue.go
+++ b/pkg/fuzzer/prio_queue.go
@@ -19,6 +19,14 @@ func (p priority) greaterThan(other priority) bool {
return false
}
}
+ for i := len(p); i < len(other); i++ {
+ if other[i] < 0 {
+ return true
+ }
+ if other[i] > 0 {
+ return false
+ }
+ }
return false
}