From owner-svn-ports-all@FreeBSD.ORG Sat Mar 28 16:48:16 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C2CD7D15; Sat, 28 Mar 2015 16:48:16 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93A4599A; Sat, 28 Mar 2015 16:48:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2SGmGXI034565; Sat, 28 Mar 2015 16:48:16 GMT (envelope-from makc@FreeBSD.org) Received: (from makc@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2SGmGOu034563; Sat, 28 Mar 2015 16:48:16 GMT (envelope-from makc@FreeBSD.org) Message-Id: <201503281648.t2SGmGOu034563@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: makc set sender to makc@FreeBSD.org using -f From: Max Brazhnikov Date: Sat, 28 Mar 2015 16:48:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r382523 - in head/archivers/libzip: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Mar 2015 16:48:16 -0000 Author: makc Date: Sat Mar 28 16:48:15 2015 New Revision: 382523 URL: https://svnweb.freebsd.org/changeset/ports/382523 QAT: https://qat.redports.org/buildarchive/r382523/ Log: archivers/libzip: - Add patch to fix CVE-2015-2331: ZIP Integer Overflow [1] - Add CPE PR: 198913 [1] Reported by: Sevan Janiyan Added: head/archivers/libzip/files/patch-lib_zip__dirent.c (contents, props changed) Modified: head/archivers/libzip/Makefile Modified: head/archivers/libzip/Makefile ============================================================================== --- head/archivers/libzip/Makefile Sat Mar 28 16:32:33 2015 (r382522) +++ head/archivers/libzip/Makefile Sat Mar 28 16:48:15 2015 (r382523) @@ -3,16 +3,18 @@ PORTNAME= libzip PORTVERSION= 0.11.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= archivers devel MASTER_SITES= http://www.nih.at/libzip/ MAINTAINER= makc@FreeBSD.org COMMENT= C library for reading, creating, and modifying ZIP archives +CPE_VENDOR= nih + GNU_CONFIGURE= yes MAKE_ENV= LC_ALL="C" -USES= libtool pathfix tar:xz +USES= cpe libtool pathfix tar:xz USE_LDCONFIG= yes INSTALL_TARGET= install-strip Added: head/archivers/libzip/files/patch-lib_zip__dirent.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/archivers/libzip/files/patch-lib_zip__dirent.c Sat Mar 28 16:48:15 2015 (r382523) @@ -0,0 +1,14 @@ +CVE-2015-2331: ZIP Integer Overflow +Upstream commit: http://hg.nih.at/libzip/rev/9f11d54f692e + +--- lib/zip_dirent.c.orig 2013-11-28 16:57:10 UTC ++++ lib/zip_dirent.c +@@ -110,7 +110,7 @@ _zip_cdir_new(zip_uint64_t nentry, struc + + if (nentry == 0) + cd->entry = NULL; +- else if ((cd->entry=(struct zip_entry *)malloc(sizeof(*(cd->entry))*(size_t)nentry)) == NULL) { ++ else if ((nentry > SIZE_MAX/sizeof(*(cd->entry))) || (cd->entry=(struct zip_entry *)malloc(sizeof(*(cd->entry))*(size_t)nentry)) == NULL) { + _zip_error_set(error, ZIP_ER_MEMORY, 0); + free(cd); + return NULL;