From: Rasmus Lerdorf Date: Sat, 25 Feb 2006 21:32:11 +0000 (+0000) Subject: MFH - binary safety patch from Moriyoshi X-Git-Tag: php-5.1.3RC1~71 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fe5bc7010498ad36acd3bb81a331dcb640b6100;p=php MFH - binary safety patch from Moriyoshi --- diff --git a/ext/standard/html.c b/ext/standard/html.c index 22441195e4..b1d05fd893 100644 --- a/ext/standard/html.c +++ b/ext/standard/html.c @@ -884,7 +884,7 @@ PHPAPI char *php_unescape_html_entities(unsigned char *old, int oldlen, int *new unsigned char replacement[15]; int replacement_len; - ret = estrdup(old); + ret = estrndup(old, oldlen); retlen = oldlen; if (!retlen) { goto empty_source;