From: Rasmus Lerdorf Date: Sat, 25 Feb 2006 21:30:32 +0000 (+0000) Subject: Binary safety patch from Moriyoshi X-Git-Tag: RELEASE_1_2~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f16846e68534360dccc76907886c0a66f89bea3a;p=php 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;