summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2014-12-30 19:26:39 +0000
committertron <tron@pkgsrc.org>2014-12-30 19:26:39 +0000
commit5e3e9054032ae012007ace55e8a723f1f24efcd0 (patch)
tree4231f9abe08d7016e71a9be857ec563ad4550836
parent030cf554a1e209a40ef3bd9840fec8364eb53b7b (diff)
downloadpkgsrc-5e3e9054032ae012007ace55e8a723f1f24efcd0.tar.gz
Pullup ticket #4580 - requested by dholland
print/ghostscript-gpl: security patch Revisions pulled up: - print/ghostscript-gpl/Makefile 1.15 - print/ghostscript-gpl/distinfo 1.7 - print/ghostscript-gpl/patches/patch-CVE-2014-9029 1.1 --- Module Name: pkgsrc Committed By: dholland Date: Tue Dec 30 07:52:41 UTC 2014 Modified Files: pkgsrc/print/ghostscript-gpl: Makefile distinfo Added Files: pkgsrc/print/ghostscript-gpl/patches: patch-CVE-2014-9029 Log Message: Clone patch from graphics/jasper for CVE-2014-9029, and adjust slightly to match the older jasper that ships with ghostscript. (Unfortunately, it's been modified so we can't have ghostscript use the pkgsrc version.)
-rw-r--r--print/ghostscript-gpl/Makefile4
-rw-r--r--print/ghostscript-gpl/distinfo3
-rw-r--r--print/ghostscript-gpl/patches/patch-CVE-2014-902935
3 files changed, 39 insertions, 3 deletions
diff --git a/print/ghostscript-gpl/Makefile b/print/ghostscript-gpl/Makefile
index 729d5ae45f2..6cdf4b148ac 100644
--- a/print/ghostscript-gpl/Makefile
+++ b/print/ghostscript-gpl/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2014/07/18 08:56:37 ryoon Exp $
+# $NetBSD: Makefile,v 1.14.4.1 2014/12/30 19:26:39 tron Exp $
DISTNAME= ghostscript-${GS_VERSION}
PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-gpl/}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ghostscript/}
MASTER_SITES+= http://ghostscript.com/releases/
diff --git a/print/ghostscript-gpl/distinfo b/print/ghostscript-gpl/distinfo
index 21ea4c08d9e..72b96fab769 100644
--- a/print/ghostscript-gpl/distinfo
+++ b/print/ghostscript-gpl/distinfo
@@ -1,9 +1,10 @@
-$NetBSD: distinfo,v 1.6 2014/07/18 08:56:37 ryoon Exp $
+$NetBSD: distinfo,v 1.6.4.1 2014/12/30 19:26:39 tron Exp $
SHA1 (ghostscript-9.06.tar.bz2) = 4c1c2b4cddd16d86b21f36ad4fc15f6100162238
RMD160 (ghostscript-9.06.tar.bz2) = 11ef74cf783ec5f7cde0ceaaf2823a1f62fb4d1d
Size (ghostscript-9.06.tar.bz2) = 29246039 bytes
SHA1 (patch-CVE-2012-4405) = 1dcb4cfeceb366c144e0a1337c6ccc2d8e13e4ca
+SHA1 (patch-CVE-2014-9029) = 9636c7d6909fc0dec7ad2102b59fb14d599bac6a
SHA1 (patch-af) = 79af4d253001f879f1b5d3ef93584ae7300361de
SHA1 (patch-ah) = c8ca372123b98e054e460550b820479ba1f943b0
SHA1 (patch-ai) = 8a3de7e097d3d893a0de4ea2936acf192f770c65
diff --git a/print/ghostscript-gpl/patches/patch-CVE-2014-9029 b/print/ghostscript-gpl/patches/patch-CVE-2014-9029
new file mode 100644
index 00000000000..1e1c764f6f1
--- /dev/null
+++ b/print/ghostscript-gpl/patches/patch-CVE-2014-9029
@@ -0,0 +1,35 @@
+$NetBSD: patch-CVE-2014-9029,v 1.1.2.2 2014/12/30 19:26:39 tron Exp $
+
+Patch for CVE-2014-9029 from https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-9029
+(adjusted very slightly to match the jasper shipped with ghostscript)
+
+
+--- jasper/src/libjasper/jpc/jpc_dec.c.orig 2012-08-08 08:01:36.000000000 +0000
++++ jasper/src/libjasper/jpc/jpc_dec.c
+@@ -1294,7 +1294,7 @@ static int jpc_dec_process_coc(jpc_dec_t
+ jpc_coc_t *coc = &ms->parms.coc;
+ jpc_dec_tile_t *tile;
+
+- if (JAS_CAST(int, coc->compno) > dec->numcomps) {
++ if (JAS_CAST(int, coc->compno) >= dec->numcomps) {
+ jas_eprintf(
+ "invalid component number in COC marker segment\n");
+ return -1;
+@@ -1321,7 +1321,7 @@ static int jpc_dec_process_rgn(jpc_dec_t
+ jpc_rgn_t *rgn = &ms->parms.rgn;
+ jpc_dec_tile_t *tile;
+
+- if (JAS_CAST(int, rgn->compno) > dec->numcomps) {
++ if (JAS_CAST(int, rgn->compno) >= dec->numcomps) {
+ jas_eprintf(
+ "invalid component number in RGN marker segment\n");
+ return -1;
+@@ -1371,7 +1371,7 @@ static int jpc_dec_process_qcc(jpc_dec_t
+ jpc_qcc_t *qcc = &ms->parms.qcc;
+ jpc_dec_tile_t *tile;
+
+- if (JAS_CAST(int, qcc->compno) > dec->numcomps) {
++ if (JAS_CAST(int, qcc->compno) >= dec->numcomps) {
+ jas_eprintf(
+ "invalid component number in QCC marker segment\n");
+ return -1;