mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 20:25:25 +03:00
boot: change multiplication order
LGTM was complaining: > Multiplication result may overflow 'unsigned int' before it is converted to 'unsigned long'.
This commit is contained in:
parent
3d6c184474
commit
cac4d95ec8
@ -280,7 +280,7 @@ EFI_STATUS graphics_splash(UINT8 *content, UINTN len, const EFI_GRAPHICS_OUTPUT_
|
||||
GraphicsOutput->Mode->Info->VerticalResolution, 0);
|
||||
|
||||
/* EFI buffer */
|
||||
blt_size = dib->x * dib->y * sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL);
|
||||
blt_size = sizeof(EFI_GRAPHICS_OUTPUT_BLT_PIXEL) * dib->x * dib->y;
|
||||
blt = AllocatePool(blt_size);
|
||||
if (!blt)
|
||||
return EFI_OUT_OF_RESOURCES;
|
||||
|
Loading…
Reference in New Issue
Block a user