diff options
author | foobar <sniper@php.net> | 2003-05-21 22:36:46 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2003-05-21 22:36:46 +0000 |
commit | a335bb813d08f89ed10adf0a045b5c3e153132eb (patch) | |
tree | a306005904b7cfbb15d3457037e22dff4a16d89e /ext/informix | |
parent | 0840b0ccf05a3bb6fbb9c878eae2fa05f15724fd (diff) | |
download | php-git-a335bb813d08f89ed10adf0a045b5c3e153132eb.tar.gz |
MFH: Fixed bug #23738 (ifx_copy_blob() crash). (Jani)
Diffstat (limited to 'ext/informix')
-rw-r--r-- | ext/informix/ifx.ec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/informix/ifx.ec b/ext/informix/ifx.ec index e2e1e7d180..752e25bd6e 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; } |