summaryrefslogtreecommitdiff
path: root/www/php4/patches
diff options
context:
space:
mode:
authorjdolecek <jdolecek>2004-07-13 12:22:29 +0000
committerjdolecek <jdolecek>2004-07-13 12:22:29 +0000
commitc6f32a6172de2c394e9802b1c498ee003651f3fe (patch)
tree395b7770c93535188f1c48ff8386d4ec2ecefedd /www/php4/patches
parent73507308d32a06f39eeafee7a64d5c5e326c19c0 (diff)
downloadpkgsrc-c6f32a6172de2c394e9802b1c498ee003651f3fe.tar.gz
fix a memory-use-after-free bug in the Zend engine constant code
bump php4 PKGREVISION
Diffstat (limited to 'www/php4/patches')
-rw-r--r--www/php4/patches/patch-ai17
1 files changed, 17 insertions, 0 deletions
diff --git a/www/php4/patches/patch-ai b/www/php4/patches/patch-ai
new file mode 100644
index 00000000000..482383b7b88
--- /dev/null
+++ b/www/php4/patches/patch-ai
@@ -0,0 +1,17 @@
+$NetBSD: patch-ai,v 1.7 2004/07/13 12:22:29 jdolecek Exp $
+
+--- Zend/zend_constants.c.orig 2004-07-13 14:01:27.000000000 +0200
++++ Zend/zend_constants.c 2004-07-13 14:01:54.000000000 +0200
+@@ -265,11 +265,11 @@
+ }
+
+ if (zend_hash_add(EG(zend_constants), name, c->name_len, (void *) c, sizeof(zend_constant), NULL)==FAILURE) {
++ zend_error(E_NOTICE,"Constant %s already defined", name);
+ free(c->name);
+ if (!(c->flags & CONST_PERSISTENT)) {
+ zval_dtor(&c->value);
+ }
+- zend_error(E_NOTICE,"Constant %s already defined", name);
+ ret = FAILURE;
+ }
+ if (lowercase_name) {