pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/m4



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.

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



Home | Main Index | Thread Index | Old Index