From a08852a5825b529d4cb75937ef216217c0d33b11 Mon Sep 17 00:00:00 2001 From: AWoloszyn Date: Mon, 24 Sep 2018 15:22:49 -0400 Subject: [PATCH] Fix an overrun in the dependencySync. --- gapis/api/vulkan/vulkan.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gapis/api/vulkan/vulkan.go b/gapis/api/vulkan/vulkan.go index fb932c26f7..da95c0558c 100644 --- a/gapis/api/vulkan/vulkan.go +++ b/gapis/api/vulkan/vulkan.go @@ -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++ }