Received: by mail.netbsd.org (Postfix, from userid 605) id B394884DD1; Sat, 4 Jul 2020 15:44:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3A38084D9F for ; Sat, 4 Jul 2020 15:44:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 4a4Qzm9OlHnq for ; Sat, 4 Jul 2020 15:44:07 +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 CBE4784D83 for ; Sat, 4 Jul 2020 15:44:07 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id BA93EFB28; Sat, 4 Jul 2020 15:44:07 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Sat, 4 Jul 2020 15:44:07 +0000 From: "Roland Illig" Subject: CVS commit: src/usr.bin/make To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200704154407.BA93EFB28@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: "Roland Illig" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: rillig Date: Sat Jul 4 15:44:07 UTC 2020 Modified Files: src/usr.bin/make: var.c Log Message: make(1): fix :hash modifier on 16-bit platforms On platforms where int has only 16 bits the shifts would have been in 16-bit arithmetic, which would invoke undefined behavior for "ustr[3] << 24" as well as "ustr[2] << 16" (C99, 6.5.7p3). To generate a diff of this commit: cvs rdiff -u -r1.251 -r1.252 src/usr.bin/make/var.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.