Received: from eggs.gnu.org ([2001:4830:134:3::10]:54884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIwId-0001wA-1l for qemu-devel@nongnu.org; Tue, 12 Jan 2016 05:35:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIwIZ-0003i5-RW for qemu-devel@nongnu.org; Tue, 12 Jan 2016 05:35:38 -0500 Received: from indium.canonical.com ([91.189.90.7]:50314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIwIZ-0003ht-LB for qemu-devel@nongnu.org; Tue, 12 Jan 2016 05:35:35 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aIwIY-0006vJ-CE for ; Tue, 12 Jan 2016 10:35:34 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 3810E2EA00C for ; Tue, 12 Jan 2016 10:35:34 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Jan 2016 10:27:37 -0000 From: dcb <1533141@bugs.launchpad.net> Sender: bounces@canonical.com Message-Id: <20160112102737.14906.20337.malonedeb@wampee.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1533141] [NEW] 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 Public bug reported: 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. ** 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/1533141 Title: qemu/disas/libvixl/vixl/invalset.h: 2 * sanity check after use ? Status in QEMU: New 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