ia64/xen-unstable

changeset 9711:ec4f87e98fc1

Fix stack corruption in the libxs python interface. domid_t is a short;
instead use uint32_t like we do in xc.c.

Signed-off-by: John Levon <john.levon@sun.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Apr 13 19:14:11 2006 +0100 (2006-04-13)
parents e7d769001b4b
children f4285d150d3a
files tools/python/xen/lowlevel/xs/xs.c
line diff
     1.1 --- a/tools/python/xen/lowlevel/xs/xs.c	Thu Apr 13 16:21:13 2006 +0000
     1.2 +++ b/tools/python/xen/lowlevel/xs/xs.c	Thu Apr 13 19:14:11 2006 +0100
     1.3 @@ -589,7 +589,7 @@ static PyObject *xspy_transaction_end(Xs
     1.4  
     1.5  static PyObject *xspy_introduce_domain(XsHandle *self, PyObject *args)
     1.6  {
     1.7 -    domid_t dom;
     1.8 +    uint32_t dom;
     1.9      unsigned long page;
    1.10      unsigned int port;
    1.11  
    1.12 @@ -620,7 +620,7 @@ static PyObject *xspy_introduce_domain(X
    1.13  
    1.14  static PyObject *xspy_release_domain(XsHandle *self, PyObject *args)
    1.15  {
    1.16 -    domid_t dom;
    1.17 +    uint32_t dom;
    1.18  
    1.19      struct xs_handle *xh = xshandle(self);
    1.20      bool result = 0;
    1.21 @@ -677,7 +677,7 @@ static PyObject *xspy_close(XsHandle *se
    1.22  static PyObject *xspy_get_domain_path(XsHandle *self, PyObject *args)
    1.23  {
    1.24      struct xs_handle *xh = xshandle(self);
    1.25 -    int domid;
    1.26 +    uint32_t domid;
    1.27      char *xsval;
    1.28  
    1.29      if (!xh)