mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Fix integer overflow problem with libfsimage grub plugins.
Signed-off-by: John Levon <john.levon@sun.com>
This commit is contained in:
1 parent
b991dfcee5
commit
106e6b9de4
1 file changed
+1
-1
@@ -126,7 +126,7 @@ int
|
||||
fsig_devread(fsi_file_t *ffi, unsigned int sector, unsigned int offset,
|
||||
unsigned int bufsize, char *buf)
|
||||
{
|
||||
uint64_t off = ffi->ff_fsi->f_off + ((uint64_t)(sector * 512)) + offset;
|
||||
uint64_t off = ffi->ff_fsi->f_off + ((uint64_t)sector * 512) + offset;
|
||||
ssize_t bytes_read = 0;
|
||||
|
||||
while (bufsize) {
|
||||
|
||||