Received: from eggs.gnu.org ([2001:4830:134:3::10]:52978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfuCT-0006fE-9t for qemu-devel@nongnu.org; Wed, 08 Apr 2015 13:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YfuCP-0005oL-8K for qemu-devel@nongnu.org; Wed, 08 Apr 2015 13:55:41 -0400 Received: from indium.canonical.com ([91.189.90.7]:46281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YfuCO-0005oD-U3 for qemu-devel@nongnu.org; Wed, 08 Apr 2015 13:55:37 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YfuCO-0007IC-57 for ; Wed, 08 Apr 2015 17:55:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 02D5D2E80C8 for ; Wed, 8 Apr 2015 17:55:36 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 08 Apr 2015 17:48:19 -0000 From: Chris Friesen Sender: bounces@canonical.com References: <20150408174819.7744.10455.malonedeb@soybean.canonical.com> Message-Id: <20150408174819.7744.10455.malonedeb@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1441775] [NEW] 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 Public bug reported: 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 p= ointer check: - if (vm) - virObjectUnlock(vm); + qemuDomObjEndAPI(&vm); ** Affects: qemu Importance: Undecided Status: New -- = 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 =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/qemu/+bug/1441775/+subscriptions