tony2001 Mon Dec 25 22:27:12 2006 UTC Modified files: /php-src/ext/xsl xsltprocessor.c Log: more safe_emalloc() http://cvs.php.net/viewvc.cgi/php-src/ext/xsl/xsltprocessor.c?r1=1.53&r2=1.54&diff_format=u Index: php-src/ext/xsl/xsltprocessor.c diff -u php-src/ext/xsl/xsltprocessor.c:1.53 php-src/ext/xsl/xsltprocessor.c:1.54 --- php-src/ext/xsl/xsltprocessor.c:1.53 Tue Dec 5 12:05:03 2006 +++ php-src/ext/xsl/xsltprocessor.c Mon Dec 25 22:27:12 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xsltprocessor.c,v 1.53 2006/12/05 12:05:03 rrichards Exp $ */ +/* $Id: xsltprocessor.c,v 1.54 2006/12/25 22:27:12 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -88,7 +88,7 @@ zstr string_key = NULL_ZSTR; parsize = (2 * zend_hash_num_elements(parht) + 1) * sizeof(char *); - params = (char **)emalloc(parsize); + params = (char **)safe_emalloc((2 * zend_hash_num_elements(parht) + 1), sizeof(char *), 0); memset((char *)params, 0, parsize); for (zend_hash_internal_pointer_reset(parht);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php