[coverity] 1543233 Unintended sign extension

This commit is contained in:
Armin Novak 2024-04-15 10:08:34 +02:00 committed by akallabeth
parent a77a0c45d7
commit aa3d05f4f2

View File

@ -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))
{