ia64/xen-unstable

changeset 7599:c794c98c416c

There is an error in xenstat, such that a wild pointer is being
dereferenced and written to.

Signed-off-by: Charles Coffing <ccoffing@novell.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Nov 01 10:33:22 2005 +0100 (2005-11-01)
parents a48ac90f99f1
children 07b5b3e2ff45
files tools/xenstat/libxenstat/src/xenstat.c
line diff
     1.1 --- a/tools/xenstat/libxenstat/src/xenstat.c	Tue Nov 01 10:31:25 2005 +0100
     1.2 +++ b/tools/xenstat/libxenstat/src/xenstat.c	Tue Nov 01 10:33:22 2005 +0100
     1.3 @@ -704,7 +704,6 @@ static char *xenstat_get_domain_name(xen
     1.4  {
     1.5  	char path[80];
     1.6  	char *name;
     1.7 -	unsigned int *len;
     1.8  	struct xs_transaction_handle *xstranshandle;
     1.9  
    1.10  	snprintf(path, sizeof(path),"/local/domain/%i/name", domain_id);
    1.11 @@ -715,7 +714,7 @@ static char *xenstat_get_domain_name(xen
    1.12  		exit(1); /* Change this */
    1.13  	}
    1.14  
    1.15 -	name = (char *) xs_read(handle->xshandle, xstranshandle, path, len);
    1.16 +	name = (char *) xs_read(handle->xshandle, xstranshandle, path, NULL);
    1.17  	
    1.18  	xs_transaction_end(handle->xshandle, xstranshandle, false);
    1.19