]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: avoid a dereference of a null pointer
authorAlex Jia <ajia@redhat.com>
Sun, 4 Sep 2011 17:01:03 +0000 (01:01 +0800)
committerEric Blake <eblake@redhat.com>
Thu, 8 Sep 2011 10:00:30 +0000 (11:00 +0100)
commit4b4e4a69a8b31350c1f5ee911cab99f352b169ee
treeb56cc9d6b40e40483b40163942499942f8586a0b
parent6977fd95bfdf366b92c59203106a6eb762ff2a33
libxl: avoid a dereference of a null pointer

Variable 'l_disk' initialized to a null pointer value, control jumps to 'case
VIR_DOMAIN_DISK_DEVICE_DISK and then taking false branch, Within the expansion
of the macro 'libxlError': Field access results in a dereference of a null
pointer (loaded from variable 'l_disk').

* src/libxl/libxl_driver.c: Field access results in a dereference of a null
  pointer (loaded from variable 'l_disk')

Signed-off-by: Alex Jia <ajia@redhat.com>
src/libxl/libxl_driver.c