]> 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)
committerEric Blake <eblake@redhat.com>
Thu, 29 Nov 2012 17:10:08 +0000 (10:10 -0700)
commit7730257db30972a6f4db8d582b232b240b2a06b8
treeae36c27e2dc14a4f7bdcf2c136d0495ab98758e3
parentd5e8842538d19c5787fc69ae55cfa557e6ebedf5
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.
src/util/processinfo.c