Skip to content

Fix for two crashes#2741

Merged
panos-lunarg merged 2 commits intoLunarG:devfrom
panos-lunarg:fix_for_two_crashes
Mar 3, 2026
Merged

Fix for two crashes#2741
panos-lunarg merged 2 commits intoLunarG:devfrom
panos-lunarg:fix_for_two_crashes

Conversation

@panos-lunarg
Copy link
Contributor

No description provided.

@panos-lunarg panos-lunarg requested a review from a team as a code owner March 2, 2026 14:42
Spec mandates that pData in vkGetRayTracingShaderGroupHandlesKHR should
be not be null. However applications can incorrectly pass a null pointer
which, for debug builds, leads to an assertion failure, but for release
builds it causes us to crash. This should make
OverrideGetRayTracingShaderGroupHandlesKHR to handle this case without
crashing.
If creation of pipeline fails, forwarind a VK_NULL_HANDLE as an object
down vkSetDebugUtilsObjectNameEXT can cause a seg fault.
@panos-lunarg panos-lunarg force-pushed the fix_for_two_crashes branch from 0fc9b90 to 5a72bcc Compare March 3, 2026 17:44
@panos-lunarg panos-lunarg merged commit 58d635c into LunarG:dev Mar 3, 2026
7 checks passed
zongdu-arm pushed a commit to zongdu-arm/gfxreconstruct that referenced this pull request Mar 6, 2026
* Handle null pData in GetRayTracingShaderGroupHandles

Spec mandates that pData in vkGetRayTracingShaderGroupHandlesKHR should
be not be null. However applications can incorrectly pass a null pointer
which, for debug builds, leads to an assertion failure, but for release
builds it causes us to crash. This should make
OverrideGetRayTracingShaderGroupHandlesKHR to handle this case without
crashing.

* Fix crash in address replacer

If creation of pipeline fails, forwarind a VK_NULL_HANDLE as an object
down vkSetDebugUtilsObjectNameEXT can cause a seg fault.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants