Received: from eggs.gnu.org ([2001:4830:134:3::10]:45283) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfzfL-0005eW-Mj for qemu-devel@nongnu.org; Wed, 08 Apr 2015 19:45:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfzfF-0007Ew-QB for qemu-devel@nongnu.org; Wed, 08 Apr 2015 19:45:51 -0400 Received: from indium.canonical.com ([91.189.90.7]:40882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfzfF-0007Eo-C7 for qemu-devel@nongnu.org; Wed, 08 Apr 2015 19:45:45 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YfzfE-000521-ET for ; Wed, 08 Apr 2015 23:45:44 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 5B82E2E80CA for ; Wed, 8 Apr 2015 23:45:44 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 08 Apr 2015 23:38:37 -0000 From: Eric Blake <1441775@bugs.launchpad.net> Sender: bounces@canonical.com References: <20150408174819.7744.10455.malonedeb@soybean.canonical.com> Message-Id: <20150408233838.23533.72568.launchpad@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1441775] Re: possible null pointer dereference in qemuDomainPinEmulator() Reply-To: Bug 1441775 <1441775@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Project changed: qemu =3D> libvirt -- = 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 =3D 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