WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] There is an error in xenstat, such that a wild pointer i

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] There is an error in xenstat, such that a wild pointer is being
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 01 Nov 2005 17:36:12 +0000
Delivery-date: Tue, 01 Nov 2005 17:34:38 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] There is an error in xenstat, such that a wild pointer is being, Xen patchbot -unstable <=