Received: by mail.netbsd.org (Postfix, from userid 605) id 05A7484D40; Sat, 19 Aug 2017 05:19:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 841A684D34 for ; Sat, 19 Aug 2017 05:19:32 +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 eoC0GWzVwFJ4 for ; Sat, 19 Aug 2017 05:19:32 +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 237D784D6E for ; Sat, 19 Aug 2017 05:19:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 22230FAD0; Sat, 19 Aug 2017 05:19:32 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 19 Aug 2017 05:19:32 +0000 From: "Soren Jacobsen" Subject: CVS commit: [netbsd-7] src/sys/dev To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20170819051932.22230FAD0@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: "Soren Jacobsen" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: snj Date: Sat Aug 19 05:19:32 UTC 2017 Modified Files: src/sys/dev [netbsd-7]: vnd.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1476): sys/dev/vnd.c: revision 1.260, 1.262 via patch Put in a litany of judicious bounds checks around vnd headers. Thought I was done with this crap after I rewrote vndcompress(1)! From Ilja Van Sprundel. -- Appease toxic bullshit warning from gcc. If you have a better way to write a useful bounds check that happens to always pass on LP64 but doesn't always on LP32, without making it fail to compile on LP64 or making it an #ifdef conditional on LP32, please put it in here instead. To generate a diff of this commit: cvs rdiff -u -r1.232.2.4 -r1.232.2.5 src/sys/dev/vnd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.