]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Protect against NULL pointer flaws in monitor usage
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 17 May 2010 11:43:36 +0000 (07:43 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 18 May 2010 10:03:06 +0000 (06:03 -0400)
commit31e29fe5247fd4beca437cdbc49e1b1f30884446
tree357942b1bd13f927e4962573504c23c89dc29eb2
parentc4b2a93907357cff31178cd5bc388fc1a0d033be
Protect against NULL pointer flaws in monitor usage

History has shown that there are frequent bugs in the QEMU driver
code leading to the monitor being invoked with a NULL pointer.
Although the QEMU driver code should always report an error in
this case before invoking the monitor, as a safety net put in a
generic check in the monitor code entry points.

* src/qemu/qemu_monitor.c: Safety net to check for NULL monitor
  object
src/qemu/qemu_monitor.c