From: foobar Date: Wed, 21 May 2003 22:20:07 +0000 (+0000) Subject: Fixed bug #23738 (ifx_copy_blob() crash). (Jani) X-Git-Tag: RELEASE_1_0_2~641 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bde75d5a12264d724b9d1c605eb1f93ca3fbda8a;p=php Fixed bug #23738 (ifx_copy_blob() crash). (Jani) --- diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec index 016358e479..f9c75a1cbf 100644 --- a/ext/informix/ifx.ec +++ b/ext/informix/ifx.ec @@ -3242,7 +3242,7 @@ static long php_intifx_copy_blob(long bid, HashTable *list TSRMLS_DC) if (Ifx_blob->BLOB.mode == BLMODE_INMEM) { char *content; if (locator_orig->loc_bufsize >= 0 && locator_orig->loc_buffer != NULL) { - if ((content = emalloc(locator_orig->loc_size)) == NULL) { + if ((content = emalloc(locator_orig->loc_bufsize)) == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create blob-resource"); return -1; }