mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix off-by-one preventing the last elfnote from being read in xc.c.
Signed-off-by: Brendan Cully <brendan@cs.ubc.ca>
This commit is contained in:
1 parent
1f95747a4f
commit
5f7ac4f0bc
1 file changed
+1
-1
@@ -411,7 +411,7 @@ static PyObject *pyxc_linux_build(XcObject *self,
|
||||
|
||||
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;
|
||||
|
||||