|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-changelog
[Xen-changelog] [xen-unstable] Fix off-by-one preventing the last	elfnot 
| # HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1172655494 0
# Node ID 8939316a07358245e1a5d2f716f7f8ee58dabffb
# Parent  5217185f75880554c8b458e52a6af4b1d2c4d15b
Fix off-by-one preventing the last elfnote from being read in xc.c.
Signed-off-by: Brendan Cully <brendan@xxxxxxxxx>
---
 tools/python/xen/lowlevel/xc/xc.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 5217185f7588 -r 8939316a0735 tools/python/xen/lowlevel/xc/xc.c
--- a/tools/python/xen/lowlevel/xc/xc.c Tue Feb 27 20:27:18 2007 +0000
+++ b/tools/python/xen/lowlevel/xc/xc.c Wed Feb 28 09:38:14 2007 +0000
@@ -411,7 +411,7 @@ static PyObject *pyxc_linux_build(XcObje
 
     if (!(elfnote_dict = PyDict_New()))
        goto out;
-    for (i = 0; i < XEN_ELFNOTE_MAX; i++) {
+    for (i = 0; i <= XEN_ELFNOTE_MAX; i++) {
        switch (dom->parms.elf_notes[i].type) {
        case XEN_ENT_NONE:
            continue;
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-changelog] [xen-unstable] Fix off-by-one preventing the last	elfnote from being read in xc.c.,
Xen patchbot-unstable <=
 |  |  | 
  
    |  |  |