X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fboot%2Fefi%2Fsplash.c;h=470ea3e2cc85a57956ebb84aff6770159a158f33;hp=3f2aa27ddd207c91dfcca4501027d4a6fbcea4f5;hb=17366dcbe347c0a96df513268cb7acfed9b8f1f9;hpb=2f8d336478536af789d654599f9523d02e0ca693 diff --git a/src/boot/efi/splash.c b/src/boot/efi/splash.c index 3f2aa27dd..470ea3e2c 100644 --- a/src/boot/efi/splash.c +++ b/src/boot/efi/splash.c @@ -19,6 +19,7 @@ #include #include "util.h" +#include "graphics.h" #include "splash.h" struct bmp_file { @@ -96,7 +97,7 @@ EFI_STATUS bmp_parse_header(UINT8 *bmp, UINTN size, struct bmp_dib **ret_dib, return EFI_UNSUPPORTED; } - row_size = (((dib->depth * dib->x) + 31) / 32) * 4; + row_size = ((UINTN) dib->depth * dib->x + 31) / 32 * 4; if (file->size - file->offset < dib->y * row_size) return EFI_INVALID_PARAMETER; if (row_size * dib->y > 64 * 1024 * 1024)