diff options
author | taca <taca@pkgsrc.org> | 2009-10-22 14:39:55 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2009-10-22 14:39:55 +0000 |
commit | f4c169da90c023a8c2c2122d23b7374201243e79 (patch) | |
tree | 62a055a1af31eb1aceae8d8b64a6695502bc6dc2 /graphics/gd/patches | |
parent | 0a9f7587eb0e73d32b9bf257b5b011041b792386 (diff) | |
download | pkgsrc-f4c169da90c023a8c2c2122d23b7374201243e79.tar.gz |
Fix gd library security problem refering PHP's SVN repositry.
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3546
Bump PKGREVISION.
(This fix is for php5 only and I don't know about php4.)
Diffstat (limited to 'graphics/gd/patches')
-rw-r--r-- | graphics/gd/patches/patch-ad | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/gd/patches/patch-ad b/graphics/gd/patches/patch-ad new file mode 100644 index 00000000000..3c5e92a6b73 --- /dev/null +++ b/graphics/gd/patches/patch-ad @@ -0,0 +1,18 @@ +$NetBSD: patch-ad,v 1.1 2009/10/22 14:39:55 taca Exp $ + +* Fix for http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3546, + similar chagne from PHP's SVN repositry r289557. + +--- gd_gd.c.orig 2006-04-06 00:52:22.000000000 +0900 ++++ gd_gd.c +@@ -44,6 +44,10 @@ _gdGetColors (gdIOCtx * in, gdImagePtr i + { + goto fail1; + } ++ if (im->colorsTotal > gdMaxColors) ++ { ++ goto fail1; ++ } + } + /* Int to accommodate truecolor single-color transparency */ + if (!gdGetInt (&im->transparent, in)) |