Received: by mail.netbsd.org (Postfix, from userid 605) id 1C36484D8C; Tue, 25 Sep 2018 20:21:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1D9F084D7D for ; Tue, 25 Sep 2018 20:21:52 +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 sEbnITzFbWE7 for ; Tue, 25 Sep 2018 20:21:51 +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 724DD84CEA for ; Tue, 25 Sep 2018 20:21:51 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 6276EFBEE; Tue, 25 Sep 2018 20:21:51 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1537906911227100" MIME-Version: 1.0 Date: Tue, 25 Sep 2018 20:21:51 +0000 From: "Joerg Sonnenberger" Subject: CVS commit: pkgsrc/devel/m4 To: pkgsrc-changes@NetBSD.org Reply-To: joerg@netbsd.org X-Mailer: log_accum Message-Id: <20180925202151.6276EFBEE@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1537906911227100 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: joerg Date: Tue Sep 25 20:21:51 UTC 2018 Modified Files: pkgsrc/devel/m4: Makefile distinfo Added Files: pkgsrc/devel/m4/patches: patch-lib_xalloc-oversized.h Log Message: Always compute (possible) overflow in unsigned math. Avoids crash with clang on startup. Bump revision. To generate a diff of this commit: cvs rdiff -u -r1.75 -r1.76 pkgsrc/devel/m4/Makefile cvs rdiff -u -r1.43 -r1.44 pkgsrc/devel/m4/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/devel/m4/patches/patch-lib_xalloc-oversized.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1537906911227100 Content-Disposition: inline Content-Length: 2185 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/devel/m4/Makefile diff -u pkgsrc/devel/m4/Makefile:1.75 pkgsrc/devel/m4/Makefile:1.76 --- pkgsrc/devel/m4/Makefile:1.75 Fri Aug 25 05:28:53 2017 +++ pkgsrc/devel/m4/Makefile Tue Sep 25 20:21:51 2018 @@ -1,6 +1,7 @@ -# $NetBSD: Makefile,v 1.75 2017/08/25 05:28:53 adam Exp $ +# $NetBSD: Makefile,v 1.76 2018/09/25 20:21:51 joerg Exp $ DISTNAME= m4-1.4.18 +PKGREVISION= 1 CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_GNU:=m4/} Index: pkgsrc/devel/m4/distinfo diff -u pkgsrc/devel/m4/distinfo:1.43 pkgsrc/devel/m4/distinfo:1.44 --- pkgsrc/devel/m4/distinfo:1.43 Tue Mar 13 20:26:42 2018 +++ pkgsrc/devel/m4/distinfo Tue Sep 25 20:21:51 2018 @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.43 2018/03/13 20:26:42 jmcneill Exp $ +$NetBSD: distinfo,v 1.44 2018/09/25 20:21:51 joerg Exp $ SHA1 (m4-1.4.18.tar.gz) = 2f76f8105a45b05c8cfede97b3193cd88b31c657 RMD160 (m4-1.4.18.tar.gz) = 16396a6ffbb2105cdd0a36c773b44d16854ed740 @@ -8,3 +8,4 @@ SHA1 (patch-isnan.c) = a960f35e5168bed47 SHA1 (patch-lib_getprogname.c) = 3a8e7c028342ef3a9f86839f1a5ae36571a65f12 SHA1 (patch-lib_stdio.in.h) = 21557ea9d86dbeb36062df4e62cb71735b06480b SHA1 (patch-lib_vasnprintf.c) = 2bced6c121efc9bc5894174c7745ba89e8f53033 +SHA1 (patch-lib_xalloc-oversized.h) = 9e74adec2f43770d419f60d5c3e7bdea2424daa6 Added files: Index: pkgsrc/devel/m4/patches/patch-lib_xalloc-oversized.h diff -u /dev/null pkgsrc/devel/m4/patches/patch-lib_xalloc-oversized.h:1.1 --- /dev/null Tue Sep 25 20:21:51 2018 +++ pkgsrc/devel/m4/patches/patch-lib_xalloc-oversized.h Tue Sep 25 20:21:51 2018 @@ -0,0 +1,16 @@ +$NetBSD: patch-lib_xalloc-oversized.h,v 1.1 2018/09/25 20:21:51 joerg Exp $ + +--- lib/xalloc-oversized.h.orig 2018-08-19 18:13:08.426109176 +0000 ++++ lib/xalloc-oversized.h +@@ -35,11 +35,7 @@ + #define __xalloc_oversized(n, s) \ + ((size_t) (PTRDIFF_MAX < SIZE_MAX ? PTRDIFF_MAX : SIZE_MAX - 1) / (s) < (n)) + +-#if PTRDIFF_MAX < SIZE_MAX +-typedef ptrdiff_t __xalloc_count_type; +-#else + typedef size_t __xalloc_count_type; +-#endif + + /* Return 1 if an array of N objects, each of size S, cannot exist + reliably due to size or ptrdiff_t arithmetic overflow. S must be --_----------=_1537906911227100--