cvs: php-src /ext/iconv iconv.c

From: Date: Mon, 25 Dec 2006 20:44:28 +0000
Subject: cvs: php-src /ext/iconv iconv.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-42378@lists.php.net to get a copy of this message
tony2001 Mon Dec 25 20:44:28 2006 UTC Modified files: /php-src/ext/iconv iconv.c Log: use safe_emalloc() http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/iconv.c?r1=1.148&r2=1.149&diff_format=u Index: php-src/ext/iconv/iconv.c diff -u php-src/ext/iconv/iconv.c:1.148 php-src/ext/iconv/iconv.c:1.149 --- php-src/ext/iconv/iconv.c:1.148 Wed Dec 20 10:38:24 2006 +++ php-src/ext/iconv/iconv.c Mon Dec 25 20:44:28 2006 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: iconv.c,v 1.148 2006/12/20 10:38:24 bjori Exp $ */ +/* $Id: iconv.c,v 1.149 2006/12/25 20:44:28 tony2001 Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1105,7 +1105,7 @@ goto out; } - buf = emalloc(max_line_len + 5); + buf = safe_emalloc(1, max_line_len, 5); char_cnt = max_line_len;

« previous php.cvs (#42378) next »