Commit 7e5d7dc3 by Geoff Lang Committed by Commit Bot

Vulkan: Initialize all members of VmaVulkanFunctions.

VmaVulkanFunctions was passed to vmaCreateAllocator without initializing all members. This leads to potential reads of uninitialized variables. BUG=chromium:1078652 Change-Id: Id349c8fbb2dd3a5a2c64c6a017add3d6f97b78fd Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2185191Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 562602a3
...@@ -18,7 +18,7 @@ VkResult InitAllocator(VkPhysicalDevice physicalDevice, ...@@ -18,7 +18,7 @@ VkResult InitAllocator(VkPhysicalDevice physicalDevice,
VkInstance instance, VkInstance instance,
VmaAllocator *pAllocator) VmaAllocator *pAllocator)
{ {
VmaVulkanFunctions funcs; VmaVulkanFunctions funcs = {};
funcs.vkGetPhysicalDeviceProperties = vkGetPhysicalDeviceProperties; funcs.vkGetPhysicalDeviceProperties = vkGetPhysicalDeviceProperties;
funcs.vkGetPhysicalDeviceMemoryProperties = vkGetPhysicalDeviceMemoryProperties; funcs.vkGetPhysicalDeviceMemoryProperties = vkGetPhysicalDeviceMemoryProperties;
funcs.vkAllocateMemory = vkAllocateMemory; funcs.vkAllocateMemory = vkAllocateMemory;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment