Module: vkd3d Branch: master Commit: 183172eff4cfe53e0e36abb875f083f18f9da439 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/183172eff4cfe53e0e36abb875f083...
Author: Zebediah Figura zfigura@codeweavers.com Date: Fri Jun 30 19:04:00 2023 -0500
vkd3d-shader/hlsl: Validate that condition expressions are numeric.
---
libs/vkd3d-shader/hlsl.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index c2e9b525..c934aaae 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -296,7 +296,7 @@ static void check_condition_type(struct hlsl_ctx *ctx, const struct hlsl_ir_node { const struct hlsl_type *type = cond->data_type;
- if (type->dimx > 1 || type->dimy > 1) + if (type->class > HLSL_CLASS_LAST_NUMERIC || type->dimx > 1 || type->dimy > 1) { struct vkd3d_string_buffer *string;