Received: from eggs.gnu.org ([2001:4830:134:3::10]:56747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIxwU-0002kW-QG for qemu-devel@nongnu.org; Tue, 12 Jan 2016 07:20:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIxwQ-00063k-Lv for qemu-devel@nongnu.org; Tue, 12 Jan 2016 07:20:54 -0500 Received: from indium.canonical.com ([91.189.90.7]:57365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIxwQ-00063H-H8 for qemu-devel@nongnu.org; Tue, 12 Jan 2016 07:20:50 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aIxwP-00044Q-Tm for ; Tue, 12 Jan 2016 12:20:49 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id DFEB92E80AE for ; Tue, 12 Jan 2016 12:20:49 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Jan 2016 12:11:18 -0000 From: dcb <1533141@bugs.launchpad.net> Sender: bounces@canonical.com References: <20160112102737.14906.20337.malonedeb@wampee.canonical.com> Message-Id: <20160112121118.15018.60070.malone@wampee.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 >If you want to suggest coding style changes to it I would recommend report= ing them to the upstream project: = Thanks. Done here: https://github.com/armvixl/vixl/issues -- = 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