[Git][wine/vkd3d][master] vkd3d-shader/hlsl: Avoid member access on NULL resource load (ubsan).
Henri Verbeet pushed to branch master at wine / vkd3d Commits: 06a50397 by Francisco Casas at 2025-11-18T17:42:11+01:00 vkd3d-shader/hlsl: Avoid member access on NULL resource load (ubsan). In some scenarios this resource load is NULL, and we are still doing &load->node on it. vkd3d/libs/vkd3d-shader/hlsl.c:2195:12: runtime error: member access within null pointer of type 'struct hlsl_ir_resource_load' This happens in tests/hlsl/sampler-state.shader_test, in the following test: [pixel shader fail] Texture2D tex; float4 main(): sv_target { return tex.Sample(sampler_state {}, float2(0, 0)); } - - - - - 1 changed file: - libs/vkd3d-shader/hlsl.c View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/commit/06a503975f7808bcefff8bf2ca4e96... -- View it on GitLab: https://gitlab.winehq.org/wine/vkd3d/-/commit/06a503975f7808bcefff8bf2ca4e96... You're receiving this email because of your account on gitlab.winehq.org.
participants (1)
-
Henri Verbeet (@hverbeet)