Commit 1f1686fd authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

d3dcompiler_43: Fixed small overread possibility (Coverity).

parent 45473a65
......@@ -1058,10 +1058,8 @@ static const char *debug_node_type(enum hlsl_ir_node_type type)
"HLSL_IR_FUNCTION_DECL",
};
if (type > sizeof(names) / sizeof(names[0]))
{
if (type >= sizeof(names) / sizeof(names[0]))
return "Unexpected node type";
}
return names[type];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment