From: [EMAIL PROTECTED] Operating system: Linux PHP version: 5CVS-2006-09-05 (CVS) PHP Bug Type: Date/time related Bug description: date_parse() invalid read
Description: ------------ valgrind reports an invalid read in date_parse(). Reproduce code: --------------- <?php date_parse(""); ?> Expected result: ---------------- . Actual result: -------------- ==6705== Invalid read of size 1 ==6705== at 0x80EBDF9: timelib_strtotime (parse_date.re:1528) ==6705== by 0x80C90CD: zif_date_parse (php_date.c:1694) ==6705== by 0x831A56D: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:200) ==6705== by 0x831D460: ZEND_DO_FCALL_SPEC_CONST_HANDLER (zend_vm_execute.h:1657) ==6705== by 0x831A180: execute (zend_vm_execute.h:92) ==6705== by 0x82F1312: zend_eval_string (zend_execute_API.c:1130) ==6705== by 0x82F1472: zend_eval_string_ex (zend_execute_API.c:1164) ==6705== by 0x836184B: main (php_cli.c:1141) ==6705== Address 0x49BCD27 is 1 bytes before a block of size 1 alloc'd ==6705== at 0x401C4CE: malloc (vg_replace_malloc.c:149) ==6705== by 0x82E30BA: _emalloc (zend_alloc.c:1628) ==6705== by 0x82E3454: _estrndup (zend_alloc.c:1752) ==6705== by 0x82FAD23: _zval_copy_ctor_func (zend_variables.c:120) ==6705== by 0x835DE0C: _zval_copy_ctor (zend_variables.h:45) ==6705== by 0x831D830: ZEND_SEND_VAL_SPEC_CONST_HANDLER (zend_vm_execute.h:1786) ==6705== by 0x831A180: execute (zend_vm_execute.h:92) ==6705== by 0x82F1312: zend_eval_string (zend_execute_API.c:1130) ==6705== by 0x82F1472: zend_eval_string_ex (zend_execute_API.c:1164) ==6705== by 0x836184B: main (php_cli.c:1141) -- Edit bug report at http://bugs.php.net/?id=38721&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38721&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38721&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38721&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38721&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38721&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38721&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38721&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38721&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38721&r=support Expected behavior: http://bugs.php.net/fix.php?id=38721&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38721&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38721&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38721&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38721&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38721&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38721&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38721&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38721&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38721&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38721&r=mysqlcfg