From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buL2E-000519-3V for qemu-devel@nongnu.org; Wed, 12 Oct 2016 11:01:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buL28-00077V-Sq for qemu-devel@nongnu.org; Wed, 12 Oct 2016 11:01:33 -0400 Received: from indium.canonical.com ([91.189.90.7]:44976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buL28-00077P-N9 for qemu-devel@nongnu.org; Wed, 12 Oct 2016 11:01:28 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1buL27-0005nA-Uf for ; Wed, 12 Oct 2016 15:01:28 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id CF24B2E80C2 for ; Wed, 12 Oct 2016 15:01:27 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 12 Oct 2016 14:54:26 -0000 From: "T. Huth" <1630527@bugs.launchpad.net> Reply-To: Bug 1630527 <1630527@bugs.launchpad.net> Sender: bounces@canonical.com References: <20161005105036.22226.42277.malonedeb@soybean.canonical.com> Message-Id: <20161012145426.5713.75601.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1630527] Re: qemu/hw/i386/amd_iommu.c:188: possible bad shift ? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Thanks for reporting this bug! Looks like this has already been fixed by th= is commit here: http://git.qemu.org/?p=3Dqemu.git;a=3Dcommitdiff;h=3D1d5b128cbeeab638f772e ** Changed in: qemu Status: New =3D> Fix Committed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1630527 Title: qemu/hw/i386/amd_iommu.c:188: possible bad shift ? Status in QEMU: Fix Committed Bug description: qemu/hw/i386/amd_iommu.c:188]: (error) Shifting 32-bit value by 64 bits is undefined behaviour Source code is uint64_t mask =3D ((1 << length) - 1) << bitpos; Maybe better code uint64_t mask =3D ((1ULL << length) - 1) << bitpos; To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1630527/+subscriptions