]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Fix possible infinite loop and segfault on error path.
authorPeter Krempa <pkrempa@redhat.com>
Thu, 30 Aug 2012 13:31:54 +0000 (15:31 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 30 Aug 2012 14:45:38 +0000 (16:45 +0200)
commit40dfb52517d497a3f753b3767c513cf2dce7b93f
tree090b45c98dc7527b52fd64202a555d4ae0369d17
parent46514ff752d7d304c8431f87a8cf55d54ba0f544
qemu: Fix possible infinite loop and segfault on error path.

virDomainVcpuPinDefCopy when the control flow reaches out of memory
cleanup code, the flow would end in a infinite loop as the loop variable
wasn't decremented.

Also a dereference of NULL pointers was possible if allocation of the
Vcpu pinning definiton structure failed.
src/conf/domain_conf.c