cvs: php-src(PHP_5_1) /ext/standard html.c
| From: | Rasmus Lerdorf | Date: | Sat, 25 Feb 2006 21:32:11 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37020@lists.php.net to get a copy of this message | ||
rasmus Sat Feb 25 21:32:11 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/ext/standard html.c
Log:
MFH - binary safety patch from Moriyoshi
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/html.c?r1=1.111.2.1&r2=1.111.2.2&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.111.2.1 php-src/ext/standard/html.c:1.111.2.2
--- php-src/ext/standard/html.c:1.111.2.1 Sun Jan 1 12:50:14 2006
+++ php-src/ext/standard/html.c Sat Feb 25 21:32:11 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.111.2.1 2006/01/01 12:50:14 sniper Exp $ */
+/* $Id: html.c,v 1.111.2.2 2006/02/25 21:32:11 rasmus Exp $ */
/*
* HTML entity resources:
@@ -884,7 +884,7 @@
unsigned char replacement[15];
int replacement_len;
- ret = estrdup(old);
+ ret = estrndup(old, oldlen);
retlen = oldlen;
if (!retlen) {
goto empty_source;