Skip to content

Commit

Permalink
Fix an overrun in the dependencySync.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWoloszyn committed Sep 25, 2018
1 parent 0147001 commit a08852a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gapis/api/vulkan/vulkan.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ func dependencySync(ctx context.Context, d *sync.Data, c *path.Capture) error {

excIdx := 0
for _, subcmd := range d.SubcommandReferences[id] {
for excIdx < len(executors) && executors[excIdx].lastIdx.LessThan(subcmd.Index) {
for excIdx < len(executors)-1 && executors[excIdx].lastIdx.LessThan(subcmd.Index) {
excIdx++
}

Expand Down

0 comments on commit a08852a

Please sign in to comment.