#23738 [Opn->Csd]: copy blob caused Segmentation fault

From: Date: Wed, 21 May 2003 22:37:26 +0000
Subject: #23738 [Opn->Csd]: copy blob caused Segmentation fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40167@lists.php.net to get a copy of this message
ID: 23738 Updated by: sniper@php.net Reported By: novicky at aarongroup dot cz -Status: Open +Status: Closed Bug Type: Informix related Operating System: All PHP Version: 4.3.2RC3 New Comment: This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2003-05-21 10:35:44] novicky at aarongroup dot cz In function php_intifx_copy_blob there is a problem on line 3249 - there is a memcopy of length "locator_orig->loc_bufsize" while the allocated memory is "locator_orig->loc_size" these values might be different! if ((content = emalloc(locator_orig->loc_size)) == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create blob-resource"); return -1; } memcpy(content,locator_orig->loc_buffer, locator_orig->loc_bufsize); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23738&edit=1

« previous php.bugs (#40167) next »