pkgsrc-Changes archive

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

CVS commit: pkgsrc/print/ghostscript-gpl



Module Name:    pkgsrc
Committed By:   tez
Date:           Wed Apr  5 20:11:01 UTC 2017

Modified Files:
        pkgsrc/print/ghostscript-gpl: Makefile distinfo
Added Files:
        pkgsrc/print/ghostscript-gpl/patches: patch-CVE-2017-7207

Log Message:
Fix for CVE-2017-7207


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/print/ghostscript-gpl/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/print/ghostscript-gpl/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/print/ghostscript-gpl/patches/patch-CVE-2017-7207

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

Modified files:

Index: pkgsrc/print/ghostscript-gpl/Makefile
diff -u pkgsrc/print/ghostscript-gpl/Makefile:1.23 pkgsrc/print/ghostscript-gpl/Makefile:1.24
--- pkgsrc/print/ghostscript-gpl/Makefile:1.23  Thu Mar 23 20:38:24 2017
+++ pkgsrc/print/ghostscript-gpl/Makefile       Wed Apr  5 20:11:01 2017
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2017/03/23 20:38:24 tez Exp $
+# $NetBSD: Makefile,v 1.24 2017/04/05 20:11:01 tez Exp $
 
 DISTNAME=      ghostscript-${GS_VERSION}
 PKGNAME=       ${DISTNAME:S/ghostscript/ghostscript-gpl/}
-PKGREVISION=   10
+PKGREVISION=   11
 CATEGORIES=    print
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
 MASTER_SITES+= http://ghostscript.com/releases/

Index: pkgsrc/print/ghostscript-gpl/distinfo
diff -u pkgsrc/print/ghostscript-gpl/distinfo:1.14 pkgsrc/print/ghostscript-gpl/distinfo:1.15
--- pkgsrc/print/ghostscript-gpl/distinfo:1.14  Thu Mar 23 20:38:24 2017
+++ pkgsrc/print/ghostscript-gpl/distinfo       Wed Apr  5 20:11:01 2017
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.14 2017/03/23 20:38:24 tez Exp $
+$NetBSD: distinfo,v 1.15 2017/04/05 20:11:01 tez Exp $
 
 SHA1 (ghostscript-9.06.tar.bz2) = 4c1c2b4cddd16d86b21f36ad4fc15f6100162238
 RMD160 (ghostscript-9.06.tar.bz2) = 11ef74cf783ec5f7cde0ceaaf2823a1f62fb4d1d
@@ -11,6 +11,7 @@ SHA1 (patch-CVE-2014-8157) = 18822069b97
 SHA1 (patch-CVE-2014-8158) = 71387f152a205caaef0fcc518dbb0fbb7b78e531
 SHA1 (patch-CVE-2014-9029) = 9636c7d6909fc0dec7ad2102b59fb14d599bac6a
 SHA1 (patch-CVE-2017-6196) = 311d9236dd5abcd48ae0f412bf481e105b6207dc
+SHA1 (patch-CVE-2017-7207) = 31f4a73b49b52942385eaa3c8cf2a94b5bbde6df
 SHA1 (patch-af) = 79af4d253001f879f1b5d3ef93584ae7300361de
 SHA1 (patch-ah) = 73a05ee51845ca70e1b18c50dee98d6799a46d52
 SHA1 (patch-ai) = 3962a3acac1d4537dbbe3fc3b205aba87387d485

Added files:

Index: pkgsrc/print/ghostscript-gpl/patches/patch-CVE-2017-7207
diff -u /dev/null pkgsrc/print/ghostscript-gpl/patches/patch-CVE-2017-7207:1.1
--- /dev/null   Wed Apr  5 20:11:01 2017
+++ pkgsrc/print/ghostscript-gpl/patches/patch-CVE-2017-7207    Wed Apr  5 20:11:01 2017
@@ -0,0 +1,17 @@
+$NetBSD: patch-CVE-2017-7207,v 1.1 2017/04/05 20:11:01 tez Exp $
+
+Fix for CVE-2017-7207 from
+http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=309eca4e0a31ea70dcc844812691439312dad091;hp=dd5da2cb3e08398ac6d86598b36b00994d058308
+
+
+--- base/gdevmem.c.orig        2017-04-05 19:13:09.561063700 +0000
++++ base/gdevmem.c
+@@ -562,6 +562,8 @@ mem_get_bits_rectangle(gx_device * dev,
+             GB_PACKING_CHUNKY | GB_COLORS_NATIVE | GB_ALPHA_NONE;
+         return_error(gs_error_rangecheck);
+     }
++    if (mdev->line_ptrs == 0x00)
++      return_error(gs_error_rangecheck);
+     if ((w <= 0) | (h <= 0)) {
+         if ((w | h) < 0)
+             return_error(gs_error_rangecheck);



Home | Main Index | Thread Index | Old Index