grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Issue reading >4GB loopback image via grub exfat


From: Carlo Caione
Subject: [PATCH] Issue reading >4GB loopback image via grub exfat
Date: Wed, 24 Aug 2016 15:36:21 +0200

From: Carlo Caione <address@hidden>

We have a big image (~6GB) in an exFAT partition. We want to read the content
of the image using the loopback command in grub.

What we get is an error message:

grub> loopback loop0 (hd1,gpt1)/endless/endless.img
grub> ls (loop0,gpt3)/boot
error: attempt to read or write outside of disk `loop0'.

We traced this error back to the wrong type for the 'file_size' variable in the
'grub_fat_data' struct. When MODE_EXFAT is defined and grub is compiled for
i386-pc, 'file_size' is still a 32bit variable when it should really be a 64bit
variable to fully contain the size of the >4GB file we are dealing with.

Carlo Caione (1):
  FAT/exFAT: Fix wrong size detection for files > 4GB

 grub-core/fs/fat.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]