Received: from eggs.gnu.org ([2001:4830:134:3::10]:44268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIxJo-00083X-VL for qemu-devel@nongnu.org; Tue, 12 Jan 2016 06:40:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIxJk-0003JS-RM for qemu-devel@nongnu.org; Tue, 12 Jan 2016 06:40:56 -0500 Received: from indium.canonical.com ([91.189.90.7]:42539) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIxJk-0003JM-L6 for qemu-devel@nongnu.org; Tue, 12 Jan 2016 06:40:52 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aIxJj-0000aI-FH for ; Tue, 12 Jan 2016 11:40:51 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 718EC2E80D0 for ; Tue, 12 Jan 2016 11:40:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Jan 2016 11:34:35 -0000 From: Peter Maydell Sender: bounces@canonical.com References: <20160112102737.14906.20337.malonedeb@wampee.canonical.com> Message-Id: <20160112113435.28149.22533.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1533141] Re: qemu/disas/libvixl/vixl/invalset.h: 2 * sanity check after use ? Reply-To: Bug 1533141 <1533141@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org libvixl is not part of QEMU proper, but is an upstream library which we use (as documented in disas/libvixl/README). If you want to suggest coding style changes to it I would recommend reporting them to the upstream project: https://github.com/armvixl/vixl . QEMU just takes the most recent release of the library and includes it in our repo without making any changes to the code if we can avoid it. ** Changed in: qemu Status: New =3D> Invalid -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1533141 Title: qemu/disas/libvixl/vixl/invalset.h: 2 * sanity check after use ? Status in QEMU: Invalid Bug description: 1. [qemu/disas/libvixl/vixl/invalset.h:442]: (style) Array index 'low' is used before limits check. while (!IsValid(elements[low]) && (low < high)) ++low; 2. [qemu/disas/libvixl/vixl/invalset.h:450]: (style) Array index 'middle' is used before limits check. while (!IsValid(elements[middle]) && (middle < high - 1)) ++middle; Also, binary search is a standard C library routine. Suggest use. To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1533141/+subscriptions