From 2e3cd64566586a0afb3dfe64cfbe1d91f219cadd Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 25 Dec 2006 20:44:45 +0000 Subject: [PATCH] MFH --- ext/iconv/iconv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 9cfdf8bebb..5ff1d0abbb 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1040,7 +1040,7 @@ static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fn goto out; } - buf = emalloc(max_line_len + 5); + buf = safe_emalloc(1, max_line_len, 5); char_cnt = max_line_len; -- 2.50.1