cvs: php-src /ext/standard html.c
| From: | Rasmus Lerdorf | Date: | Sat, 25 Feb 2006 21:30:33 +0000 |
| Subject: | cvs: php-src /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37019@lists.php.net to get a copy of this message | ||
rasmus Sat Feb 25 21:30:33 2006 UTC
Modified files:
/php-src/ext/standard html.c
Log:
Binary safety patch from Moriyoshi
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/html.c?r1=1.112&r2=1.113&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.112 php-src/ext/standard/html.c:1.113
--- php-src/ext/standard/html.c:1.112 Sun Jan 1 13:09:55 2006
+++ php-src/ext/standard/html.c Sat Feb 25 21:30:32 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.112 2006/01/01 13:09:55 sniper Exp $ */
+/* $Id: html.c,v 1.113 2006/02/25 21:30:32 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;