mirror of
https://github.com/libvirt/libvirt.git
synced 2026-08-04 18:33:18 -05:00
Add array bounds checking in xendDaemonListDomains
This commit is contained in:
+3
-1
@@ -2625,7 +2625,9 @@ xenDaemonListDomains(virConnectPtr conn, int *ids, int maxids)
|
||||
continue;
|
||||
id = xenDaemonDomainLookupByName_ids(conn, node->value, NULL);
|
||||
if (id >= 0)
|
||||
ids[ret++] = (int) id;
|
||||
ids[ret++] = (int) id;
|
||||
if (ret >= maxids)
|
||||
break;
|
||||
}
|
||||
|
||||
error:
|
||||
|
||||
Reference in New Issue
Block a user