Skip to content

Commit

Permalink
Fix for out of bounds when hitting expand limit
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Aug 25, 2022
1 parent e0c2462 commit 51ec495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/engine/analyzeobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func AnalyzeObjects(opts AnalyzeObjectsOptions) (pg Graph) {
return iv > jv
})

for i := 0; i+added < opts.MaxOutgoingConnections; i++ {
for i := 0; i+added < opts.MaxOutgoingConnections && i < len(notadded); i++ {
newimplicatedobjects[notadded[i].Target] = struct{}{} // Add this as our best item
}
}
Expand Down

0 comments on commit 51ec495

Please sign in to comment.