View | Details | Raw Unified | Return to bug 147163
Collapse All | Expand All

(-)/usr/ports/graphics/php4-gd.fixed/Makefile (+1 lines)
Lines 5-10 Link Here
5
# $FreeBSD: ports/graphics/php4-gd/Makefile,v 1.1 2004/07/19 07:21:35 ale Exp $
5
# $FreeBSD: ports/graphics/php4-gd/Makefile,v 1.1 2004/07/19 07:21:35 ale Exp $
6
#
6
#
7
7
8
PORTREVISION=	3
8
CATEGORIES=	graphics
9
CATEGORIES=	graphics
9
10
10
MASTERDIR=	${.CURDIR}/../../lang/php4
11
MASTERDIR=	${.CURDIR}/../../lang/php4
(-)/usr/ports/graphics/php4-gd.fixed/files/patch-gd_gd.c (+12 lines)
Line 0 Link Here
1
--- libgd/gd_gd.c.orig	2010-03-26 14:26:22.000000000 +0100
2
+++ libgd/gd_gd.c	2010-03-26 14:28:03.000000000 +0100
3
@@ -40,6 +40,9 @@
4
 			if (!gdGetWord(&im->colorsTotal, in)) {
5
 				goto fail1;
6
 			}
7
+			if (im->colorsTotal > gdMaxColors) {
8
+				goto fail1;
9
+			}
10
 		}
11
 		/* Int to accommodate truecolor single-color transparency */
12
 		if (!gdGetInt(&im->transparent, in)) {

Return to bug 147163