[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] libxenguest: Add another range check to dom restore.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1182424201 -3600
# Node ID 5ec34f7f31ab0d249e8328f7dae1f0e1d3cf44b9
# Parent  a83632dfbb28038ec4218e00f92ea220a85b6887
libxenguest: Add another range check to dom restore.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 tools/libxc/xc_domain_restore.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r a83632dfbb28 -r 5ec34f7f31ab tools/libxc/xc_domain_restore.c
--- a/tools/libxc/xc_domain_restore.c   Thu Jun 21 09:47:39 2007 +0100
+++ b/tools/libxc/xc_domain_restore.c   Thu Jun 21 12:10:01 2007 +0100
@@ -465,7 +465,7 @@ int xc_domain_restore(int xc_handle, int
         if ( j == 0 )
             break;  /* our work here is done */
 
-        if ( j > MAX_BATCH_SIZE )
+        if ( (j > MAX_BATCH_SIZE) || (j < 0) )
         {
             ERROR("Max batch size exceeded. Giving up.");
             goto out;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.