View | Details | Raw Unified | Return to bug 202781 | Differences between
and this patch

Collapse All | Expand All

(-)print/ghostscript7/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ghostscript
4
PORTNAME=	ghostscript
5
PORTVERSION=	7.07
5
PORTVERSION=	7.07
6
PORTREVISION=	31
6
PORTREVISION=	32
7
CATEGORIES=	print
7
CATEGORIES=	print
8
MASTER_SITES=	SF/ghostscript/gnu-gs/${PORTVERSION}:gs_srcs \
8
MASTER_SITES=	SF/ghostscript/gnu-gs/${PORTVERSION}:gs_srcs \
9
		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs${PORTVERSION:S/.//}/:gs_srcs \
9
		ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/gnu/gs${PORTVERSION:S/.//}/:gs_srcs \
(-)print/ghostscript7/files/patch-src-gsmalloc.c (+11 lines)
Line 0 Link Here
1
--- src/gsmalloc.c.orig	2015-07-24 09:55:54.032137000 +0900
2
+++ src/gsmalloc.c	2015-07-24 09:57:15.070246000 +0900
3
@@ -170,7 +170,7 @@
4
     } else {
5
 	uint added = size + sizeof(gs_malloc_block_t);
6
 
7
-	if (mmem->limit - added < mmem->used)
8
+	if (added <= size || mmem->limit - added < mmem->used)
9
 	    set_msg("exceeded limit");
10
 	else if ((ptr = (byte *) malloc(added)) == 0)
11
 	    set_msg("failed");
(-)print/ghostscript8/Makefile (-1 / +1 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	ghostscript
4
PORTNAME=	ghostscript
5
PORTVERSION=	8.71
5
PORTVERSION=	8.71
6
PORTREVISION=	18
6
PORTREVISION=	19
7
CATEGORIES=	print
7
CATEGORIES=	print
8
MASTER_SITES=	http://downloads.ghostscript.com/public/:gs_srcs \
8
MASTER_SITES=	http://downloads.ghostscript.com/public/:gs_srcs \
9
		SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
9
		SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
(-)print/ghostscript8/files/patch-base-gsmalloc.c (+11 lines)
Line 0 Link Here
1
--- base/gsmalloc.c.orig	2015-07-24 09:52:39.718916000 +0900
2
+++ base/gsmalloc.c	2015-07-24 09:54:31.761202000 +0900
3
@@ -174,7 +174,7 @@
4
     } else {
5
 	uint added = size + sizeof(gs_malloc_block_t);
6
 
7
-	if (mmem->limit - added < mmem->used)
8
+	if (added <= size || mmem->limit - added < mmem->used)
9
 	    set_msg("exceeded limit");
10
 	else if ((ptr = (byte *) malloc(added)) == 0)
11
 	    set_msg("failed");
(-)print/ghostscript9/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	ghostscript
3
PORTNAME=	ghostscript
4
PORTVERSION=	9.06
4
PORTVERSION=	9.06
5
PORTREVISION=	10
5
PORTREVISION=	11
6
CATEGORIES=	print
6
CATEGORIES=	print
7
MASTER_SITES=	http://downloads.ghostscript.com/public/:gs_srcs \
7
MASTER_SITES=	http://downloads.ghostscript.com/public/:gs_srcs \
8
		SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
8
		SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
(-)print/ghostscript9/files/patch-base-gsmalloc.c (+11 lines)
Line 0 Link Here
1
--- base/gsmalloc.c.orig	2015-07-24 09:41:05.295969000 +0900
2
+++ base/gsmalloc.c	2015-07-24 09:41:15.146305000 +0900
3
@@ -178,7 +178,7 @@
4
     } else {
5
         uint added = size + sizeof(gs_malloc_block_t);
6
 
7
-        if (mmem->limit - added < mmem->used)
8
+        if (added <= size || mmem->limit - added < mmem->used)
9
             set_msg("exceeded limit");
10
         else if ((ptr = (byte *) Memento_label(malloc(added), cname)) == 0)
11
             set_msg("failed");
(-)print/ghostscript9-agpl/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
2
3
PORTNAME=	ghostscript
3
PORTNAME=	ghostscript
4
PORTVERSION=	9.15
4
PORTVERSION=	9.15
5
PORTREVISION=	1
5
PORTREVISION=	2
6
CATEGORIES=	print
6
CATEGORIES=	print
7
MASTER_SITES=	http://downloads.ghostscript.com/public/:gs_srcs \
7
MASTER_SITES=	http://downloads.ghostscript.com/public/:gs_srcs \
8
		SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
8
		SF/ghostscript/GPL%20Ghostscript/${PORTVERSION}:gs_srcs \
(-)print/ghostscript9-agpl/files/patch-base-gsmalloc.c (+11 lines)
Line 0 Link Here
1
--- base/gsmalloc.c.orig	2015-08-22 03:09:16.838614000 +0900
2
+++ base/gsmalloc.c	2015-08-22 03:09:34.776354000 +0900
3
@@ -178,7 +178,7 @@
4
     } else {
5
         uint added = size + sizeof(gs_malloc_block_t);
6
 
7
-        if (mmem->limit - added < mmem->used)
8
+        if (added <= size || mmem->limit - added < mmem->used)
9
             set_msg("exceeded limit");
10
         else if ((ptr = (byte *) Memento_label(malloc(added), cname)) == 0)
11
             set_msg("failed");

Return to bug 202781