From 9b25c3265494dc8dd69820a4b8dd6c6661552aca Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Fri, 14 Nov 2025 16:19:39 -0600 Subject: [PATCH] Normalize library paths queried from the OS The path the operating system returns may not be normalized, so comparing it with a normalized path yields false positives. --- loader/loader.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/loader/loader.c b/loader/loader.c index 1d2ea4ab0..6e4f0d94b 100644 --- a/loader/loader.c +++ b/loader/loader.c @@ -633,6 +633,12 @@ VkResult fixup_library_binary_path(const struct loader_instance *inst, char **li } if (NULL != os_determined_lib_name) { + // Normalize the path so that the comparison doesn't yield false positives + res = normalize_path(inst, &os_determined_lib_name); + if (res == VK_ERROR_OUT_OF_HOST_MEMORY) { + return res; + } + if (0 != strcmp(os_determined_lib_name, *lib_name)) { // Paths do not match, so we need to replace lib_name with the real path if (!system_path) {