summaryrefslogtreecommitdiff
path: root/lang/php5/patches/patch-ae
diff options
context:
space:
mode:
authortaca <taca>2007-08-01 01:40:07 +0000
committertaca <taca>2007-08-01 01:40:07 +0000
commit5ae8ea80bd9d5046facf152bbfe4760b0f5d31fe (patch)
tree9a647b4c042892e9b89770632f6e083237015ae5 /lang/php5/patches/patch-ae
parent0ced295fd2ff38de0f1186a640bfa48700b9ef8e (diff)
downloadpkgsrc-5ae8ea80bd9d5046facf152bbfe4760b0f5d31fe.tar.gz
- Add patches to fix CVE-2007-3806 referring CVS repository.
- Fix compile problem on NetBSD with mremap(2). Bump PKGREVISION.
Diffstat (limited to 'lang/php5/patches/patch-ae')
-rw-r--r--lang/php5/patches/patch-ae14
1 files changed, 14 insertions, 0 deletions
diff --git a/lang/php5/patches/patch-ae b/lang/php5/patches/patch-ae
new file mode 100644
index 00000000000..80ef96cc0cf
--- /dev/null
+++ b/lang/php5/patches/patch-ae
@@ -0,0 +1,14 @@
+$NetBSD: patch-ae,v 1.1 2007/08/01 01:40:08 taca Exp $
+
+Fix for CVE-2007-3806.
+
+--- ext/standard/dir.c.orig 2007-02-25 02:16:23.000000000 +0900
++++ ext/standard/dir.c
+@@ -395,6 +395,7 @@ PHP_FUNCTION(glob)
+ }
+ #endif
+
++ memset(&globbuf, 0, sizeof(glob_t));
+ globbuf.gl_offs = 0;
+ if (0 != (ret = glob(pattern, flags & GLOB_FLAGMASK, NULL, &globbuf))) {
+ #ifdef GLOB_NOMATCH