skip layers missing api_version or implementation_version#1977
Merged
charles-lunarg merged 1 commit intoJul 16, 2026
Conversation
|
Author aizu-m not on autobuild list. Waiting for curator authorization before starting CI build. |
1 similar comment
|
Author aizu-m not on autobuild list. Waiting for curator authorization before starting CI build. |
|
CI Vulkan-Loader build queued with queue ID 43626. |
|
CI Vulkan-Loader build # 3642 running. |
charles-lunarg
approved these changes
Jul 16, 2026
|
CI Vulkan-Loader build # 3642 passed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A layer manifest that omits
api_versionis logged as skipped, but still shows up:loader_read_layer_json seeds
resultto VK_SUCCESS and every required-field check sets it back to VK_ERROR_INITIALIZATION_FAILED before jumping toout:(name, type, the api_version variant check, description, disable_environment, library_arch). Theout:epilogue only appends the layer whenresultstayed VK_SUCCESS. The two missing-field checks forapi_versionandimplementation_versionjump toout:without setting the failure result, so the layer is appended anyway.Both checks sit above the
library_pathparsing, so the appended layer never gets alib_name. Once such a layer is activated the loader calls loader_platform_open_library(NULL). dlopen(NULL) returns the host program handle, and loader_open_layer_file then logs the NULLlib_namethrough a%sconversion. Layer manifests are untrusted input, so a manifest dropping one key is enough to reach this.Set the failure result in both checks to match the neighbours. Added a regression test covering both fields.