[libvirt] [PATCH v2] xenconfig: fix handling of NULL disk source

Wim Ten Have wim.ten.have at oracle.com
Fri May 19 14:38:42 UTC 2017

From: Wim ten Have <wim.ten.have at oracle.com>

It is possible to crash libvirtd when converting xl native config to
domXML when the xl config contains an empty disk source, e.g. an empty
CDROM. Fix by checking that the disk source is non-NULL before parsing it.

Wim ten Have (1):
  xenconfig: fix handling of NULL disk source

 src/xenconfig/xen_xl.c                                    | 4 ++++
 tests/xlconfigdata/test-disk-positional-parms-partial.cfg | 2 +-
 tests/xlconfigdata/test-disk-positional-parms-partial.xml | 6 ++++++
 3 files changed, 11 insertions(+), 1 deletion(-)


More information about the libvir-list mailing list