ia64/xen-unstable

changeset 12401:fead92ec6b2d

Fix integer overflow problem with libfsimage grub plugins.

Signed-off-by: John Levon <john.levon@sun.com>
author kaf24@localhost.localdomain
date Sat Nov 11 01:17:57 2006 +0000 (2006-11-11)
parents 5bdd8b5e3a1f
children ddb3581f4f1c
files tools/libfsimage/common/fsimage_grub.c
line diff
     1.1 --- a/tools/libfsimage/common/fsimage_grub.c	Sat Nov 11 01:16:40 2006 +0000
     1.2 +++ b/tools/libfsimage/common/fsimage_grub.c	Sat Nov 11 01:17:57 2006 +0000
     1.3 @@ -126,7 +126,7 @@ int
     1.4  fsig_devread(fsi_file_t *ffi, unsigned int sector, unsigned int offset,
     1.5      unsigned int bufsize, char *buf)
     1.6  {
     1.7 -	uint64_t off = ffi->ff_fsi->f_off + ((uint64_t)(sector * 512)) + offset;
     1.8 +	uint64_t off = ffi->ff_fsi->f_off + ((uint64_t)sector * 512) + offset;
     1.9  	ssize_t bytes_read = 0;
    1.10  
    1.11  	while (bufsize) {