From 193cf51a59277c8bbd91f37902f25da647ed560a Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 21 Nov 2025 12:45:29 +0100 Subject: [PATCH] vkd3d-shader/dxil: Set the attribute group count to zero if allocation fails. --- libs/vkd3d-shader/dxil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d-shader/dxil.c b/libs/vkd3d-shader/dxil.c index 98f08cba5..c452a4621 100644 --- a/libs/vkd3d-shader/dxil.c +++ b/libs/vkd3d-shader/dxil.c @@ -8699,6 +8699,7 @@ static void sm6_parser_init_attribute_groups(struct sm6_parser *dxil, const stru { vkd3d_shader_parser_error(&dxil->p, VKD3D_SHADER_ERROR_DXIL_OUT_OF_MEMORY, "Out of memory while allocating the parameter attribute groups array."); + dxil->attribute_group_count = 0; return; }