diff options
| author | Charles Giessen <charles@lunarg.com> | 2021-11-15 15:50:36 -0700 |
|---|---|---|
| committer | Charles Giessen <46324611+charles-lunarg@users.noreply.github.com> | 2021-11-15 18:02:45 -0700 |
| commit | 8d361dd235db4296236f1deb5a7525f104d68b71 (patch) | |
| tree | 8693eb7e86bfe995728e6bf112975c3c68358d86 /scripts/generate_vulkan_wrapper.py | |
| parent | 691252756218fcbd1f0f8d7cc14e753123f08940 (diff) | |
| download | usermoji-8d361dd235db4296236f1deb5a7525f104d68b71.tar.xz | |
vulkaninfo: Prevent drivers writing out of bounds
The structure VkPhysicalDeviceShaderIntegerDotProdcutFeaturesKHR contains only a single
feature boolean flag. However, before the final version was published to the public, it
had many boolean flag values. Pre-release drivers often contain support for unpublished
extensions, such as VK_KHR_shader_integer_dot_product. Because the final version was
much smaller than the pre-release version, several drivers try to write to members that
do not exist in the final version, which cause out of bounds writes to the features struct
that vulkaninfo passes into the driver.
By increasing the size of the features struct allocation manually, we can prevent potential
crashes from OOBs writes from drivers.
Diffstat (limited to 'scripts/generate_vulkan_wrapper.py')
0 files changed, 0 insertions, 0 deletions
