Commit 3fbfd1da authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3dcompiler: Check for minimum bytecode size in d3dcompiler_strip_shader().

parent a342c75a
......@@ -367,7 +367,7 @@ static HRESULT d3dcompiler_strip_shader(const void *data, SIZE_T data_size, UINT
return E_FAIL;
}
if (!data || !data_size)
if (!data || data_size < DXBC_HEADER_SIZE)
{
WARN("Invalid arguments: data %p, data_size %Iu.\n", data, data_size);
return D3DERR_INVALIDCALL;
......
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