#44216 [Opn->Csd]: strftime segfaults on large negative value
| From: | derick@php.net | Date: | Fri, 22 Feb 2008 17:49:34 +0000 |
| Subject: | #44216 [Opn->Csd]: strftime segfaults on large negative value | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122585@lists.php.net to get a copy of this message | ||
ID: 44216
Updated by: derick@php.net
Reported By: j dot vdkamp at connectux dot com
-Status: Open
+Status: Closed
Bug Type: Reproducible crash
Operating System: Linux 64bit
PHP Version: 5.2.5
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-02-22 16:25:39] j dot vdkamp at connectux dot com
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 this bug report at http://bugs.php.net/?id=44216&edit=1