diff options
| author | Lenny Komow <lenny@lunarg.com> | 2017-10-11 13:39:33 -0600 |
|---|---|---|
| committer | Mike Schuchardt <mikes@lunarg.com> | 2018-03-09 13:54:31 -0700 |
| commit | 91f1ab0bd1e329f6a648cfbe5a270b648f59a579 (patch) | |
| tree | 45e38763a504efea407ecb34b68ca42e0b605cf4 | |
| parent | 9cd79582bcfb499dcfbf839427983a97c537cd8e (diff) | |
| download | usermoji-91f1ab0bd1e329f6a648cfbe5a270b648f59a579.tar.xz | |
loader: Fix loader using stale VkApplicationInfo
Fix a bug where the loader could crash because it used a
VkApplicationInfo struct after the struct had gone out of scope.
| -rw-r--r-- | loader/loader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loader/loader.c b/loader/loader.c index 62a17074..6acbd215 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -5137,9 +5137,9 @@ VKAPI_ATTR VkResult VKAPI_CALL terminator_CreateInstance(const VkInstanceCreateI loader_destroy_generic_list(ptr_instance, (struct loader_generic_list *)&icd_exts); // Create an instance, substituting the version to 1.0 if necessary + VkApplicationInfo icd_app_info; uint32_t requested_version = pCreateInfo == NULL || pCreateInfo->pApplicationInfo == NULL ? VK_API_VERSION_1_0 : pCreateInfo->pApplicationInfo->apiVersion; if (requested_version > icd_term->scanned_icd->api_version) { - VkApplicationInfo icd_app_info; if (icd_create_info.pApplicationInfo == NULL) { memset(&icd_app_info, 0, sizeof(icd_app_info)); } else { |
