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

[Xen-changelog] [xen-unstable] Fix integer overflow problem with libfsimage grub plugins.



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxxx
# Node ID fead92ec6b2de2393ab1cc7b946a44bddc910359
# Parent  5bdd8b5e3a1fac2880e436a5c4b86a2ff9bb25b8
Fix integer overflow problem with libfsimage grub plugins.

Signed-off-by: John Levon <john.levon@xxxxxxx>
---
 tools/libfsimage/common/fsimage_grub.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 5bdd8b5e3a1f -r fead92ec6b2d tools/libfsimage/common/fsimage_grub.c
--- a/tools/libfsimage/common/fsimage_grub.c    Sat Nov 11 01:16:40 2006 +0000
+++ b/tools/libfsimage/common/fsimage_grub.c    Sat Nov 11 01:17:57 2006 +0000
@@ -126,7 +126,7 @@ fsig_devread(fsi_file_t *ffi, unsigned i
 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) {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.