Skip to contentSkip to conversation

possible null pointer dereference in qemuDomainPinEmulator()

Qemu-devel Chris Friesen 2 participants 2 messages Apr 8, 2015

lore
Share & tools
lore
#0 lore raw

Public bug reported:

In src/qemu/qemu_driver.c the qemuDomainPinEmulator() routine basically does this

     virDomainObjPtr vm;

     if (!(vm = qemuDomObjFromDomain(dom)))
         goto cleanup;

cleanup:

     qemuDomObjEndAPI(&vm);

If "vm" is null, then this will crash.

The bug seems to have been added in commit 540c339a, which removed a null pointer check:
- if (vm)
- virObjectUnlock(vm);
+ qemuDomObjEndAPI(&vm);

** Affects: qemu
Importance: Undecided
Status: New

Signature · 32 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1441775

Title:
  possible null pointer dereference in qemuDomainPinEmulator()

Status in QEMU:
  New

Bug description:
  In src/qemu/qemu_driver.c the qemuDomainPinEmulator() routine
  basically does this

       virDomainObjPtr vm;

       if (!(vm = qemuDomObjFromDomain(dom)))
           goto cleanup;

  cleanup:
       qemuDomObjEndAPI(&vm);

  
  If "vm" is null, then this will crash.

  The bug seems to have been added in commit 540c339a, which removed a null pointer check:
  -    if (vm)
  -        virObjectUnlock(vm);
  +    qemuDomObjEndAPI(&vm);

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1441775/+subscriptions
#1 lore raw

** Project changed: qemu => libvirt

Signature · 32 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1441775

Title:
  possible null pointer dereference in qemuDomainPinEmulator()

Status in libvirt virtualization API:
  New

Bug description:
  In src/qemu/qemu_driver.c the qemuDomainPinEmulator() routine
  basically does this

       virDomainObjPtr vm;

       if (!(vm = qemuDomObjFromDomain(dom)))
           goto cleanup;

  cleanup:
       qemuDomObjEndAPI(&vm);

  
  If "vm" is null, then this will crash.

  The bug seems to have been added in commit 540c339a, which removed a null pointer check:
  -    if (vm)
  -        virObjectUnlock(vm);
  +    qemuDomObjEndAPI(&vm);

To manage notifications about this bug go to:
https://bugs.launchpad.net/libvirt/+bug/1441775/+subscriptions