]> xenbits.xensource.com Git - libvirt.git/commit
Fix crash parsing RNG device specification
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Mar 2013 11:50:14 +0000 (11:50 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 7 Mar 2013 12:57:10 +0000 (12:57 +0000)
commit75e656a363f649309fc5647c1fd402f852ef16dd
tree2f4b870b8da79e48d1a441cafe85fdda4619ebaf
parent1cf4ef1fcaf685d78b59a8ecb8f03f352013b326
Fix crash parsing RNG device specification

Code that validates the whitelist for the RNG device filename
didn't account for fact that filename may be NULL. This led
to a NULL reference crash. This wasn't caught since the test
suite was not covering this XML syntax

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-virtio-rng-default.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-virtio-rng-default.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c