pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/libytnef



Module Name:    pkgsrc
Committed By:   nros
Date:           Thu Aug 17 09:49:48 UTC 2017

Modified Files:
        pkgsrc/mail/libytnef: Makefile PLIST buildlink3.mk distinfo
Added Files:
        pkgsrc/mail/libytnef: Makefile.common
        pkgsrc/mail/libytnef/patches: patch-ytnef_Makefile.am
            patch-ytnefprint_Makefile.am
Removed Files:
        pkgsrc/mail/libytnef/patches: patch-ytnef.c

Log Message:
Update libytnef to version 1.9.2.

The changes in patch-ytnef.c has been applied upstream.
patch-ytnef.c has now been removed.

Changes from Changelog:

v1.9.2 - February 23, 2017

Thanks to @hannob for finding some Out-of-bound exceptions in memory handline.
* [SECURITY] An invalid memory access (heap overrun) in handling LONG datatypes (CVE-2017-6800)
* [SECURITY] Missing a check for fields of size 0 (CVE-2017-6801)
* [SECURITY] Potential buffer overrun on incoming Compressed RTF Streams (CVE-2017-6802)

This version  & the previous 1.9.1 resolves the following CVEs:
* CVE-2017-6306
* CVE-2017-6305
* CVE-2017-6304
* CVE-2017-6303
* CVE-2017-6302
* CVE-2017-6301
* CVE-2017-6300
* CVE-2017-6299
* CVE-2017-6298

v1.9.1 - Feb 14, 2017
* BugFix for path handling- label both / and \ as invalid characters inattachments
* Remove lots of exit(-1)'s from the code that would crash calling programs
* [SECURITY] Thanks to EricSesterhennX41 for a patch to fix lots of invalid
memory allocation around corrupted files.

v1.9 - January 2, 2017
* Unify libytnef and ytnef tools into a single build & package (Thanks @jmallach)
* Fix applied for CVE-2010-5109
* Various fixes for errors found via Static Analysis (cppcheck)
* Various memory leaks plugged (Thanks @slonik-v-domene)
* Bugfix for a broken "uniqueness" checker
* Lots of formatting & documentation cleanups

Now that the two packages are unified into a single install & build, I've had
to choose a unifier of Version Numbers.  I chose 1.9 .


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/mail/libytnef/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/libytnef/Makefile.common
cvs rdiff -u -r1.1 -r1.2 pkgsrc/mail/libytnef/PLIST
cvs rdiff -u -r1.2 -r1.3 pkgsrc/mail/libytnef/buildlink3.mk
cvs rdiff -u -r1.3 -r1.4 pkgsrc/mail/libytnef/distinfo
cvs rdiff -u -r1.1 -r0 pkgsrc/mail/libytnef/patches/patch-ytnef.c
cvs rdiff -u -r0 -r1.1 pkgsrc/mail/libytnef/patches/patch-ytnef_Makefile.am \
    pkgsrc/mail/libytnef/patches/patch-ytnefprint_Makefile.am

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/libytnef/Makefile
diff -u pkgsrc/mail/libytnef/Makefile:1.4 pkgsrc/mail/libytnef/Makefile:1.5
--- pkgsrc/mail/libytnef/Makefile:1.4   Mon Oct  8 12:19:15 2012
+++ pkgsrc/mail/libytnef/Makefile       Thu Aug 17 09:49:47 2017
@@ -1,15 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2012/10/08 12:19:15 asau Exp $
-#
+# $NetBSD: Makefile,v 1.5 2017/08/17 09:49:47 nros Exp $
 
-DISTNAME=      libytnef-1.5
-CATEGORIES=    mail
-MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ytnef/}
-
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-HOMEPAGE=      http://tnef.sourceforge.net/
-COMMENT=       Yerase's TNEF Stream Reader
-
-GNU_CONFIGURE=         YES
-USE_LIBTOOL=           YES
+.include "Makefile.common"
+PKGNAME=               lib${DISTNAME}
+COMMENT=               Yerase's TNEF Stream Reader library
+BUILD_DIRS=            lib
+PKGCONFIG_OVERRIDE=    lib/libytnef.pc.in
 
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/mail/libytnef/PLIST
diff -u pkgsrc/mail/libytnef/PLIST:1.1 pkgsrc/mail/libytnef/PLIST:1.2
--- pkgsrc/mail/libytnef/PLIST:1.1      Wed Jan  9 03:53:10 2008
+++ pkgsrc/mail/libytnef/PLIST  Thu Aug 17 09:49:47 2017
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2008/01/09 03:53:10 smb Exp $
+@comment $NetBSD: PLIST,v 1.2 2017/08/17 09:49:47 nros Exp $
 include/mapi.h
 include/mapidefs.h
 include/mapitags.h
@@ -6,3 +6,4 @@ include/tnef-errors.h
 include/tnef-types.h
 include/ytnef.h
 lib/libytnef.la
+lib/pkgconfig/libytnef.pc

Index: pkgsrc/mail/libytnef/buildlink3.mk
diff -u pkgsrc/mail/libytnef/buildlink3.mk:1.2 pkgsrc/mail/libytnef/buildlink3.mk:1.3
--- pkgsrc/mail/libytnef/buildlink3.mk:1.2      Fri Mar 20 19:24:55 2009
+++ pkgsrc/mail/libytnef/buildlink3.mk  Thu Aug 17 09:49:47 2017
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.2 2009/03/20 19:24:55 joerg Exp $
+# $NetBSD: buildlink3.mk,v 1.3 2017/08/17 09:49:47 nros Exp $
 
 BUILDLINK_TREE+=       libytnef
 
@@ -6,6 +6,7 @@ BUILDLINK_TREE+=        libytnef
 LIBYTNEF_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.libytnef+=       libytnef>=1.5
+BUILDLINK_ABI_DEPENDS.libytnef?=       libytnef>=1.9.2
 BUILDLINK_PKGSRCDIR.libytnef?= ../../mail/libytnef
 .endif # LIBYTNEF_BUILDLINK3_MK
 

Index: pkgsrc/mail/libytnef/distinfo
diff -u pkgsrc/mail/libytnef/distinfo:1.3 pkgsrc/mail/libytnef/distinfo:1.4
--- pkgsrc/mail/libytnef/distinfo:1.3   Tue Nov  3 23:27:08 2015
+++ pkgsrc/mail/libytnef/distinfo       Thu Aug 17 09:49:47 2017
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 23:27:08 agc Exp $
+$NetBSD: distinfo,v 1.4 2017/08/17 09:49:47 nros Exp $
 
-SHA1 (libytnef-1.5.tar.gz) = f04075187accaa82346ed873af8c61755de781cc
-RMD160 (libytnef-1.5.tar.gz) = c4754814124f4fbbf6d3385cded5e6f03ff09fcc
-SHA512 (libytnef-1.5.tar.gz) = 6a7f1953e734400c604d00dd639b1069147b005bb91ab43727fb9b3b6a57d6812d4e828e75f992074f86ca5e50ab7d4333bf2f288e9ffe4930de0a6abbfce91e
-Size (libytnef-1.5.tar.gz) = 212412 bytes
-SHA1 (patch-ytnef.c) = 82755fc0530ba43520de2a5b1fda3765648d1d70
+SHA1 (ytnef-1.9.2.tar.gz) = f1814a7838dc65ff076fc28379bc1d09cc57b257
+RMD160 (ytnef-1.9.2.tar.gz) = 5134cb2fb104bd180d18444dfd6639726b2a8c25
+SHA512 (ytnef-1.9.2.tar.gz) = 125727a8afac959ac9c60fa977913da743b1ace05ea6af6cd75fff3a786ecf7cb54b49006c8c5249eb48d9aefe0ffcdc24af2944a8611f54a03eb4c24a78506e
+Size (ytnef-1.9.2.tar.gz) = 300945 bytes
+SHA1 (patch-ytnef_Makefile.am) = 1a93de2ec27b3230f52e9bb7de279fd1584e0e6a
+SHA1 (patch-ytnefprint_Makefile.am) = f9e02624df257b07f1a095aeb65e5c24d8f0ee37

Added files:

Index: pkgsrc/mail/libytnef/Makefile.common
diff -u /dev/null pkgsrc/mail/libytnef/Makefile.common:1.1
--- /dev/null   Thu Aug 17 09:49:48 2017
+++ pkgsrc/mail/libytnef/Makefile.common        Thu Aug 17 09:49:47 2017
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile.common,v 1.1 2017/08/17 09:49:47 nros Exp $
+# used by mail/libytnef/Makefile
+# used by mail/ytnef/Makefile
+
+DISTNAME=       ytnef-1.9.2
+CATEGORIES=     mail
+MASTER_SITES=   ${MASTER_SITE_GITHUB:=Yeraze/}
+GITHUB_TAG=     v${PKGVERSION_NOREV}
+GITHUB_PROJECT= ytnef
+EXTRACT_USING=  bsdtar
+
+MAINTAINER=     pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=       http://github.com/Yeraze/ytnef
+LICENSE=       gnu-gpl-v2
+
+DISTINFO_FILE=          ${.CURDIR}/../../mail/libytnef/distinfo
+PATCHDIR=               ${.CURDIR}/../../mail/libytnef/patches
+
+GNU_CONFIGURE=          YES
+USE_LIBTOOL=            YES
+USE_TOOLS+=             autoconf automake
+
+pre-configure:
+       cd ${WRKSRC} && ${MKDIR} m4 && autoreconf -vfi

Index: pkgsrc/mail/libytnef/patches/patch-ytnef_Makefile.am
diff -u /dev/null pkgsrc/mail/libytnef/patches/patch-ytnef_Makefile.am:1.1
--- /dev/null   Thu Aug 17 09:49:48 2017
+++ pkgsrc/mail/libytnef/patches/patch-ytnef_Makefile.am        Thu Aug 17 09:49:47 2017
@@ -0,0 +1,16 @@
+$NetBSD: patch-ytnef_Makefile.am,v 1.1 2017/08/17 09:49:47 nros Exp $
+Use installed copy of ytnef library so we can have the programs in a 
+separate package.
+--- ytnef/Makefile.am.orig     2017-08-17 08:48:50.000000000 +0000
++++ ytnef/Makefile.am
+@@ -2,8 +2,8 @@ bin_PROGRAMS = ytnef
+ bin_SCRIPTS = ytnefprocess
+ 
+ ytnef_SOURCES = main.c
+-ytnef_CPPFLAGS = -I$(top_srcdir)/lib
+-ytnef_LDADD = $(top_builddir)/lib/libytnef.la
++ytnef_CPPFLAGS = -I$(prefix)/include
++ytnef_LDADD = $(prefix)/lib/libytnef.la
+ ytnef_CFLAGS = \
+         $(YTNEF_CFLAGS) \
+         $(AM_CFLAGS) \
Index: pkgsrc/mail/libytnef/patches/patch-ytnefprint_Makefile.am
diff -u /dev/null pkgsrc/mail/libytnef/patches/patch-ytnefprint_Makefile.am:1.1
--- /dev/null   Thu Aug 17 09:49:48 2017
+++ pkgsrc/mail/libytnef/patches/patch-ytnefprint_Makefile.am   Thu Aug 17 09:49:47 2017
@@ -0,0 +1,14 @@
+$NetBSD: patch-ytnefprint_Makefile.am,v 1.1 2017/08/17 09:49:47 nros Exp $
+Use installed copy of ytnef library so we can have the programs in a 
+separate package.
+--- ytnefprint/Makefile.am.orig        2017-08-17 08:50:42.000000000 +0000
++++ ytnefprint/Makefile.am
+@@ -1,6 +1,6 @@
+ bin_PROGRAMS = ytnefprint
+ 
+-ytnefprint_CPPFLAGS = -I$(top_srcdir)/lib
++ytnefprint_CPPFLAGS = -I$(prefix)/include
+ ytnefprint_SOURCES = main.c
+-ytnefprint_LDADD = $(top_builddir)/lib/libytnef.la
++ytnefprint_LDADD = $(prefix)/lib/libytnef.la
+ 



Home | Main Index | Thread Index | Old Index