# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID c794c98c416c9b16b25940e148ea9e939bf77ff6
# Parent a48ac90f99f19797742b370631d7763d74e1b9b8
There is an error in xenstat, such that a wild pointer is being
dereferenced and written to.
Signed-off-by: Charles Coffing <ccoffing@xxxxxxxxxx>
diff -r a48ac90f99f1 -r c794c98c416c tools/xenstat/libxenstat/src/xenstat.c
--- a/tools/xenstat/libxenstat/src/xenstat.c Tue Nov 1 09:31:25 2005
+++ b/tools/xenstat/libxenstat/src/xenstat.c Tue Nov 1 09:33:22 2005
@@ -704,7 +704,6 @@
{
char path[80];
char *name;
- unsigned int *len;
struct xs_transaction_handle *xstranshandle;
snprintf(path, sizeof(path),"/local/domain/%i/name", domain_id);
@@ -715,7 +714,7 @@
exit(1); /* Change this */
}
- name = (char *) xs_read(handle->xshandle, xstranshandle, path, len);
+ name = (char *) xs_read(handle->xshandle, xstranshandle, path, NULL);
xs_transaction_end(handle->xshandle, xstranshandle, false);
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|