mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-12 05:00:14 +02:00
DDS parsing error handling
This commit is contained in:
parent
fd11ad4533
commit
53e66ba1e9
@ -1069,7 +1069,10 @@ static HRESULT _CopyImage( _In_reads_bytes_(size) const void* pPixels, _In_ size
|
|||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert( pixelSize <= size );
|
if (pixelSize > size)
|
||||||
|
{
|
||||||
|
return E_FAIL;
|
||||||
|
}
|
||||||
|
|
||||||
std::unique_ptr<Image[]> timages( new (std::nothrow) Image[nimages] );
|
std::unique_ptr<Image[]> timages( new (std::nothrow) Image[nimages] );
|
||||||
if ( !timages )
|
if ( !timages )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user