From a5c455e71cdf5f1b342bbcce787f062da5ac2027 Mon Sep 17 00:00:00 2001 From: ZhangLiang Date: Thu, 31 Jul 2025 12:15:36 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86vvl=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ZhangLiang Change-Id: Ie435655c05d73ea4479ef398f8372da3105605fd --- loader/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/loader.c b/loader/loader.c index 2cfdfb5d..4eaef478 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -3223,7 +3223,7 @@ VkResult read_data_files_in_search_paths(const struct loader_instance *inst, enu if (max_len < sizeof(external_system_json_path)) { max_len = sizeof(external_system_json_path); } - size_t debug_layer_json_path_len = max_len + sizeof(debug_layer_name) + sizeof(json_suffix) + 1; + size_t debug_layer_json_path_len = max_len + strlen(debug_layer_name) + sizeof(json_suffix) + 1; debug_layer_json_path = loader_secure_getenv("debug.graphic.vklayer_json_path",inst); if (NULL == debug_layer_json_path || '\0' == debug_layer_json_path[0]){ debug_layer_json_path = loader_instance_heap_calloc(inst,debug_layer_json_path_len,VK_SYSTEM_ALLOCATION_SCOPE_COMMAND); -- Gitee