]> xenbits.xensource.com Git - libvirt.git/commit
virBitmap: Place virBitmapIsAllClear check after virBitmapParse calls
authorErik Skultety <eskultet@redhat.com>
Fri, 10 Apr 2015 09:11:21 +0000 (11:11 +0200)
committerErik Skultety <eskultet@redhat.com>
Mon, 13 Apr 2015 12:21:02 +0000 (14:21 +0200)
commitb77ce18a28bc8b5d6a88ecdde084259b4697b049
tree0cdebca611b3e2c97061712751506fb1aa67b27c
parent6cb9f5046f474975722560b2edb16ccd0a7b7192
virBitmap: Place virBitmapIsAllClear check after virBitmapParse calls

This patch adds checks for empty bitmaps right after the calls of
virBitmapParse. These only include spots where set API's are called and
where domain's XML is parsed.
Also, it partially reverts commit 983f5a which added a check for
invalid nodeset "0,^0" into virBitmapParse function. This change broke
the logic, as an empty bitmap should not cause an error.

https://bugzilla.redhat.com/show_bug.cgi?id=1210545
src/conf/domain_conf.c
src/conf/numa_conf.c
src/qemu/qemu_driver.c
src/util/virbitmap.c
src/xenconfig/xen_sxpr.c
tests/virbitmaptest.c