Index: head/archivers/libzip/Makefile =================================================================== --- head/archivers/libzip/Makefile (revision 450767) +++ head/archivers/libzip/Makefile (revision 450768) @@ -1,23 +1,24 @@ # Created by: Alexander Zhuravlev # $FreeBSD$ PORTNAME= libzip PORTVERSION= 1.1.3 +PORTREVISION= 1 CATEGORIES= archivers devel MASTER_SITES= http://www.nih.at/libzip/ MAINTAINER= rakuco@FreeBSD.org COMMENT= C library for reading, creating, and modifying ZIP archives LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE CPE_VENDOR= nih GNU_CONFIGURE= yes USES= cpe libtool pathfix perl5 tar:xz USE_PERL5= build USE_LDCONFIG= yes INSTALL_TARGET= install-strip .include Index: head/archivers/libzip/files/patch-CVE-2017-14107 =================================================================== --- head/archivers/libzip/files/patch-CVE-2017-14107 (nonexistent) +++ head/archivers/libzip/files/patch-CVE-2017-14107 (revision 450768) @@ -0,0 +1,27 @@ +From 9b46957ec98d85a572e9ef98301247f39338a3b5 Mon Sep 17 00:00:00 2001 +From: Thomas Klausner +Date: Tue, 29 Aug 2017 10:25:03 +0200 +Subject: [PATCH] Make eocd checks more consistent between zip and zip64 cases. + +--- + lib/zip_open.c | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) + +diff --git a/lib/zip_open.c b/lib/zip_open.c +index 3bd593b..9d3a4cb 100644 +--- lib/zip_open.c ++++ lib/zip_open.c +@@ -847,7 +847,12 @@ _zip_read_eocd64(zip_source_t *src, zip_buffer_t *buffer, zip_uint64_t buf_offse + zip_error_set(error, ZIP_ER_SEEK, EFBIG); + return NULL; + } +- if ((flags & ZIP_CHECKCONS) && offset+size != eocd_offset) { ++ if (offset+size > buf_offset + eocd_offset) { ++ /* cdir spans past EOCD record */ ++ zip_error_set(error, ZIP_ER_INCONS, 0); ++ return NULL; ++ } ++ if ((flags & ZIP_CHECKCONS) && offset+size != buf_offset + eocd_offset) { + zip_error_set(error, ZIP_ER_INCONS, 0); + return NULL; + } Property changes on: head/archivers/libzip/files/patch-CVE-2017-14107 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property