]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix virBitmap allocation in virProcessInfoGetAffinity
authorJán Tomko <jtomko@redhat.com>
Thu, 29 Nov 2012 09:56:56 +0000 (10:56 +0100)
committerCole Robinson <crobinso@redhat.com>
Sun, 9 Dec 2012 21:53:40 +0000 (16:53 -0500)
commite4e5a4d3494a34c43b7943ffda5899651198c353
tree5b714cc5330c41a74d65a1242e39c824febb83b2
parent2e7298d71868ebcde51d3b9943b57e579e4f694f
util: fix virBitmap allocation in virProcessInfoGetAffinity

Found by coverity:
Error: REVERSE_INULL (CWE-476):
    libvirt-0.10.2/src/util/processinfo.c:141: deref_ptr: Directly
    dereferencing pointer "map".
    libvirt-0.10.2/src/util/processinfo.c:142: check_after_deref:
    Null-checking "map" suggests that it may be null, but it has already
    been dereferenced on all paths leading to the check.
(cherry picked from commit 7730257db30972a6f4db8d582b232b240b2a06b8)
src/util/processinfo.c