]> xenbits.xensource.com Git - xen.git/commitdiff
Fix stack corruption in the libxs python interface. domid_t is a short;
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 13 Apr 2006 18:14:11 +0000 (19:14 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 13 Apr 2006 18:14:11 +0000 (19:14 +0100)
instead use uint32_t like we do in xc.c.

Signed-off-by: John Levon <john.levon@sun.com>
tools/python/xen/lowlevel/xs/xs.c

index 25dfaaf2a46260ed4904d845c9b0bd0545ad24b7..c900c5ed51bf8b84bc7610e2f023f2fea701cf4e 100644 (file)
@@ -589,7 +589,7 @@ static PyObject *xspy_transaction_end(XsHandle *self, PyObject *args,
 
 static PyObject *xspy_introduce_domain(XsHandle *self, PyObject *args)
 {
-    domid_t dom;
+    uint32_t dom;
     unsigned long page;
     unsigned int port;
 
@@ -620,7 +620,7 @@ static PyObject *xspy_introduce_domain(XsHandle *self, PyObject *args)
 
 static PyObject *xspy_release_domain(XsHandle *self, PyObject *args)
 {
-    domid_t dom;
+    uint32_t dom;
 
     struct xs_handle *xh = xshandle(self);
     bool result = 0;
@@ -677,7 +677,7 @@ static PyObject *xspy_close(XsHandle *self)
 static PyObject *xspy_get_domain_path(XsHandle *self, PyObject *args)
 {
     struct xs_handle *xh = xshandle(self);
-    int domid;
+    uint32_t domid;
     char *xsval;
 
     if (!xh)