diff options
author | ChibiDenDen <pdaniq@gmail.com> | 2023-02-20 11:54:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 11:54:52 +0200 |
commit | d104d8447b6594f3372b919797c4b0d9300817ba (patch) | |
tree | 2d369f11273a26b640d9d91cc91eb314010948d2 /modules/navigation | |
parent | 9f68d06ec2d8dbeb237c5aa5c6f9bbcbe26bde5d (diff) |
Fix use-after-free for VkAttachmentReference
In the flow where VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME does not exist
VkAttachmentReference are created inside a loop and their backing buffer is referenced in the subpass object.
the VkAttachmentReference vectors are freed once the loop exists, causing the subpass to point to freed data.
Add all the VkAttachmentReference to a vector in the scope of the entire function, to ensure they are not freed until vkCreateRenderPass is called
Diffstat (limited to 'modules/navigation')
0 files changed, 0 insertions, 0 deletions