diff options
author | kaf24@localhost.localdomain <kaf24@localhost.localdomain> | 2006-11-11 01:17:57 +0000 |
---|---|---|
committer | kaf24@localhost.localdomain <kaf24@localhost.localdomain> | 2006-11-11 01:17:57 +0000 |
commit | 106e6b9de42e32ab8d13ae07c095e8d9ddc4a8f5 (patch) | |
tree | 6249553c97ac059c0cd94287a0797cbb0d3906bc /tools/libfsimage | |
parent | b991dfcee512632c22d45a41b58b14c4ddc0630b (diff) | |
download | xen-106e6b9de42e32ab8d13ae07c095e8d9ddc4a8f5.tar.gz xen-106e6b9de42e32ab8d13ae07c095e8d9ddc4a8f5.tar.bz2 xen-106e6b9de42e32ab8d13ae07c095e8d9ddc4a8f5.zip |
Fix integer overflow problem with libfsimage grub plugins.
Signed-off-by: John Levon <john.levon@sun.com>
Diffstat (limited to 'tools/libfsimage')
-rw-r--r-- | tools/libfsimage/common/fsimage_grub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libfsimage/common/fsimage_grub.c b/tools/libfsimage/common/fsimage_grub.c index f8c3839328..252445f58e 100644 --- a/tools/libfsimage/common/fsimage_grub.c +++ b/tools/libfsimage/common/fsimage_grub.c @@ -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) { |