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

[Xen-changelog] [xen-unstable] Fix clobbering bug when hde is specified; QEMU only supports up to hdd, but



# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID c677f4e756084a1499f6367a2b3e2c15f5b9e66d
# Parent  d0e9da9cc84a5c58c8b2a9591e02d74f50418d82
Fix clobbering bug when hde is specified; QEMU only supports up to hdd, but
hde is accepted and writes off the end of some tables.

>From Hiromichi Itou <ito@xxxxxxxx>.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 tools/ioemu/xenstore.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r d0e9da9cc84a -r c677f4e75608 tools/ioemu/xenstore.c
--- a/tools/ioemu/xenstore.c    Thu Nov 16 10:52:03 2006 +0000
+++ b/tools/ioemu/xenstore.c    Thu Nov 16 11:11:17 2006 +0000
@@ -100,7 +100,7 @@ void xenstore_parse_domain_config(int do
        if (strncmp(dev, "hd", 2) || strlen(dev) != 3)
            continue;
        hd_index = dev[2] - 'a';
-       if (hd_index > MAX_DISKS)
+       if (hd_index >= MAX_DISKS)
            continue;
        /* read the type of the device */
        if (pasprintf(&buf, "%s/device/vbd/%s/device-type", path, e[i]) == -1)

_______________________________________________
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®.