pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkgsrc-2009Q3]: pkgsrc Pullup ticket #2918 - requested by taca:
details: https://anonhg.NetBSD.org/pkgsrc/rev/05d9f180d99a
branches: pkgsrc-2009Q3
changeset: 565802:05d9f180d99a
user: tron <tron%pkgsrc.org@localhost>
date: Thu Oct 22 21:25:08 2009 +0000
description:
Pullup ticket #2918 - requested by taca:
php-gd: security patch
Revisions pulled up:
- graphics/php-gd/Makefile 1.20
- lang/php5/distinfo 1.68
- lang/php5/patches/patch-ay 1.1
---
Module Name: pkgsrc
Committed By: taca
Date: Thu Oct 22 14:37:47 UTC 2009
Modified Files:
pkgsrc/graphics/php-gd: Makefile
pkgsrc/lang/php5: distinfo
Added Files:
pkgsrc/lang/php5/patches: patch-ay
Log Message:
Add a patch from PHP's SVN repositry to fix gd library security problem.
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3546>
diffstat:
graphics/php-gd/Makefile | 4 ++--
lang/php5/distinfo | 3 ++-
lang/php5/patches/patch-ay | 17 +++++++++++++++++
3 files changed, 21 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r e3fde49123d7 -r 05d9f180d99a graphics/php-gd/Makefile
--- a/graphics/php-gd/Makefile Thu Oct 22 14:51:55 2009 +0000
+++ b/graphics/php-gd/Makefile Thu Oct 22 21:25:08 2009 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2009/08/26 19:57:47 sno Exp $
+# $NetBSD: Makefile,v 1.19.2.1 2009/10/22 21:25:08 tron Exp $
MODNAME= gd
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES+= graphics
COMMENT= PHP extension for GD graphics library
diff -r e3fde49123d7 -r 05d9f180d99a lang/php5/distinfo
--- a/lang/php5/distinfo Thu Oct 22 14:51:55 2009 +0000
+++ b/lang/php5/distinfo Thu Oct 22 21:25:08 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.67 2009/09/26 07:35:31 taca Exp $
+$NetBSD: distinfo,v 1.67.2.1 2009/10/22 21:25:08 tron Exp $
SHA1 (php-5.2.11/php-5.2.11.tar.bz2) = 819c853ce657ef260d4a73b5a21f961115b97eef
RMD160 (php-5.2.11/php-5.2.11.tar.bz2) = 6aad53dee864ab89f794a9d3c2aa32d435ed5654
@@ -16,3 +16,4 @@
SHA1 (patch-aq) = 0c9d48547da2fa80aa8357d23ad8505d1c0330df
SHA1 (patch-ar) = 2d74ec926cc00bfbb67d16210af78c33ad9ac38d
SHA1 (patch-as) = f7ce5caffe2acdd1f8e9fc8ae6c7ba1d8c6a25c1
+SHA1 (patch-ay) = c2667dd398c1c58e55f459f2df02613dc028e9cc
diff -r e3fde49123d7 -r 05d9f180d99a lang/php5/patches/patch-ay
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/php5/patches/patch-ay Thu Oct 22 21:25:08 2009 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ay,v 1.1.2.2 2009/10/22 21:25:08 tron Exp $
+
+* Fix for http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3546
+ from PHP's SVN repositry r289557.
+
+--- ext/gd/libgd/gd_gd.c.orig 2007-08-09 23:21:38.000000000 +0900
++++ ext/gd/libgd/gd_gd.c
+@@ -39,6 +39,9 @@ int _gdGetColors (gdIOCtx * in, gdImageP
+ if (!gdGetWord(&im->colorsTotal, in)) {
+ goto fail1;
+ }
++ if (im->colorsTotal > gdMaxColors) {
++ goto fail1;
++ }
+ }
+ /* Int to accommodate truecolor single-color transparency */
+ if (!gdGetInt(&im->transparent, in)) {
Home |
Main Index |
Thread Index |
Old Index