Received: by mail.netbsd.org (Postfix, from userid 605) id 31CD484D99; Wed, 14 Nov 2018 12:05:31 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 209E684D93 for ; Wed, 14 Nov 2018 12:05:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id CeIE76PtBrut for ; Wed, 14 Nov 2018 12:05:29 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 9F96784D8C for ; Wed, 14 Nov 2018 12:05:29 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 9617FFB1F; Wed, 14 Nov 2018 12:05:29 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 14 Nov 2018 12:05:29 +0000 From: "Michael van Elst" Subject: CVS commit: src/sbin/fdisk To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20181114120529.9617FFB1F@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Michael van Elst" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: mlelstv Date: Wed Nov 14 12:05:29 UTC 2018 Modified Files: src/sbin/fdisk: fdisk.c Log Message: In validate_bootsel, the code assumed that arr[j][i] can be accessed with something like arr[0][j*ARRAYWIDTH+i]. gcc no longer allows such hacks and discards the code silently because of undefined behaviour. To generate a diff of this commit: cvs rdiff -u -r1.155 -r1.156 src/sbin/fdisk/fdisk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.