From:             j dot vdkamp at connectux dot com
Operating system: Linux 64bit
PHP version:      5.2.5
PHP Bug Type:     Reproducible crash
Bug description:  strftime segfaults on large negative value

Description:
------------
The following php code crashes on 64bit systems:

php -r 'print strftime("%c", -6847808401);'

The format string is of no importance, only the large negative value is.

Reproduce code:
---------------
print strftime("%c", -6847808401);

Expected result:
----------------
Sun Dec 31 22:59:59 1752

Actual result:
--------------
Segmentation fault

-- 
Edit bug report at http://bugs.php.net/?id=44216&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44216&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44216&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44216&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44216&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44216&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44216&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44216&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44216&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44216&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44216&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44216&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44216&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44216&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44216&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44216&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44216&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44216&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44216&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44216&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44216&r=mysqlcfg

Reply via email to