[coverity] 1543233 Unintended sign extension
This commit is contained in:
parent
a77a0c45d7
commit
aa3d05f4f2
@ -262,7 +262,7 @@ static BOOL nsc_context_initialize(NSC_CONTEXT* context, wStream* s)
|
||||
if (!nsc_stream_initialize(context, s))
|
||||
return FALSE;
|
||||
|
||||
const size_t blength = context->width * context->height * 4ull;
|
||||
const size_t blength = 4ull * context->width * context->height;
|
||||
|
||||
if (!context->BitmapData || (blength > context->BitmapDataLength))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user