chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove src/binfmt
[elogind.git]
/
src
/
boot
/
efi
/
splash.c
diff --git
a/src/boot/efi/splash.c
b/src/boot/efi/splash.c
index 3f2aa27ddd207c91dfcca4501027d4a6fbcea4f5..470ea3e2cc85a57956ebb84aff6770159a158f33 100644
(file)
--- a/
src/boot/efi/splash.c
+++ b/
src/boot/efi/splash.c
@@
-19,6
+19,7
@@
#include <efilib.h>
#include "util.h"
#include <efilib.h>
#include "util.h"
+#include "graphics.h"
#include "splash.h"
struct bmp_file {
#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;
}
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)
if (file->size - file->offset < dib->y * row_size)
return EFI_INVALID_PARAMETER;
if (row_size * dib->y > 64 * 1024 * 1024)