From: Jason Ekstrand Date: Tue, 1 Sep 2015 19:23:48 +0000 (-0700) Subject: vk/extensions: count needs to be <= number of extensions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=126ade002373825ff9e6db0f6ee2d4f7f6579f13;p=mesa.git vk/extensions: count needs to be <= number of extensions --- diff --git a/src/vulkan/anv_device.c b/src/vulkan/anv_device.c index 57b2681a2d1..19f3c1ed3cc 100644 --- a/src/vulkan/anv_device.c +++ b/src/vulkan/anv_device.c @@ -646,7 +646,7 @@ VkResult anv_GetGlobalExtensionProperties( return VK_SUCCESS; } - assert(*pCount < ARRAY_SIZE(global_extensions)); + assert(*pCount <= ARRAY_SIZE(global_extensions)); *pCount = ARRAY_SIZE(global_extensions); memcpy(pProperties, global_extensions, sizeof(global_extensions));