anv: off-by-one in GetDescriptorSetLayoutSupport
authorScott D Phillips <scott.d.phillips@intel.com>
Mon, 19 Mar 2018 22:39:25 +0000 (15:39 -0700)
committerScott D Phillips <scott.d.phillips@intel.com>
Tue, 20 Mar 2018 14:58:10 +0000 (07:58 -0700)
commitd849d36c6cc99cb7a7ad4b285e3e896d593da07b
tree791b0fbf669bd1c4e8929daf3bb9c17fcaef07e1
parent035cc7a12dc03ef8b8184f75b880ae41e452b215
anv: off-by-one in GetDescriptorSetLayoutSupport

Loop was accessing one more than bindingCount elements from
pBindings, accessing uninitialized memory.

Fixes: ddc4069122 ("anv: Implement VK_KHR_maintenance3")
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c