cvs: php-src /ext/interbase ibase_blobs.c
| From: | Antony Dovgal | Date: | Mon, 25 Dec 2006 20:53:43 +0000 |
| Subject: | cvs: php-src /ext/interbase ibase_blobs.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-42380@lists.php.net to get a copy of this message | ||
tony2001 Mon Dec 25 20:53:43 2006 UTC
Modified files:
/php-src/ext/interbase ibase_blobs.c
Log:
use safe_emalloc()
http://cvs.php.net/viewvc.cgi/php-src/ext/interbase/ibase_blobs.c?r1=1.10&r2=1.11&diff_format=u
Index: php-src/ext/interbase/ibase_blobs.c
diff -u php-src/ext/interbase/ibase_blobs.c:1.10 php-src/ext/interbase/ibase_blobs.c:1.11
--- php-src/ext/interbase/ibase_blobs.c:1.10 Sun Jan 1 13:09:50 2006
+++ php-src/ext/interbase/ibase_blobs.c Mon Dec 25 20:53:43 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: ibase_blobs.c,v 1.10 2006/01/01 13:09:50 sniper Exp $ */
+/* $Id: ibase_blobs.c,v 1.11 2006/12/25 20:53:43 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -105,7 +105,7 @@
unsigned long cur_len;
unsigned short seg_len;
- bl_data = emalloc(max_len + 1);
+ bl_data = safe_emalloc(1, max_len, 1);
for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len < max_len;
cur_len += seg_len) {