#23738 [NEW]: copy blob caused Segmentation fault

From: Date: Wed, 21 May 2003 15:35:44 +0000
Subject: #23738 [NEW]: copy blob caused Segmentation fault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40137@lists.php.net to get a copy of this message
From: novicky at aarongroup dot cz Operating system: All PHP version: 4.3.2RC3 PHP Bug Type: Informix related Bug description: copy blob caused Segmentation fault 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 bug report at http://bugs.php.net/?id=23738&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23738&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23738&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23738&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23738&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23738&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23738&r=support Expected behavior: http://bugs.php.net/fix.php?id=23738&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23738&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23738&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23738&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23738&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23738&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23738&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23738&r=gnused

« previous php.bugs (#40137) next »