]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: driver: Fix qemuDomainHelperGetVcpus for sparse vcpu topologies
authorPeter Krempa <pkrempa@redhat.com>
Thu, 25 Aug 2016 18:53:06 +0000 (14:53 -0400)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 26 Aug 2016 15:23:00 +0000 (11:23 -0400)
commit9b6e947b015026bc7bca9acc4283808459c4efd2
tree7a378d59a3307bd9fa6a361aa15f0f2b5efacfa7
parent64f26276bfb2c4c01a3fc007e5449c9ca3d93de2
qemu: driver: Fix qemuDomainHelperGetVcpus for sparse vcpu topologies

ce43cca0e refactored the helper to prepare it for sparse topologies but
forgot to fix the iterator used to fill the structures. This would
result into a weirdly sparse populated array and possible out of bounds
access and crash once sparse vcpu topologies were allowed.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1369988
src/qemu/qemu_driver.c