]> xenbits.xensource.com Git - libvirt.git/commit
conf: check the return value of virXPathNodeSet
authorJán Tomko <jtomko@redhat.com>
Wed, 28 Nov 2012 13:34:50 +0000 (14:34 +0100)
committerOsier Yang <jyang@redhat.com>
Wed, 28 Nov 2012 16:00:39 +0000 (00:00 +0800)
commit34e5791332850657b6e9e7f92190c08d458a9c37
tree4327fdf1d5d1a8163a3bd6e352681d4d9b8f2bc5
parent924a6c7f6ad3fb3c3bb91feadccd12e6e471856f
conf: check the return value of virXPathNodeSet

In a few places, the return value could get passed to VIR_ALLOC_N without
being checked, resulting in a request to allocate a lot of memory if the
return value was negative.
src/conf/domain_conf.c
src/conf/storage_conf.c