aboutsummaryrefslogtreecommitdiff
path: root/scripts/check_code_format.sh
diff options
context:
space:
mode:
authorGabríel Arthúr Pétursson <gabriel@system.is>2018-03-21 22:44:11 +0000
committerDave Houlton <daveh@lunarg.com>2018-04-04 16:16:14 -0600
commit90605a51d8197d87f9b280d99c9da5e1627f0977 (patch)
tree0e27ddc22fc25c5eee3231ffd0139a6f5cedf738 /scripts/check_code_format.sh
parente86bb48e0aa57fb85865447c8d573cc724d71920 (diff)
downloadusermoji-90605a51d8197d87f9b280d99c9da5e1627f0977.tar.xz
layers: Avoid reading pointer to array when count is zero
Take for example VkSubmitInfo. It has, amongst others, two fields: waitSemaphoreCount and pWaitSemaphores. The specification states that if waitSemaphoreCount is zero, the application may leave pWaitSemaphores uninitialized (in essence, that field is ignored). The layers read that value anyway, triggering uninitialized read errors by memory sanitization tools. Fixes uninitialized read in QueueSubmitSemaphoresAndLayoutTracking.
Diffstat (limited to 'scripts/check_code_format.sh')
0 files changed, 0 insertions, 0 deletions