Bug #55797 [Opn->Csd]: Integer overflow in SdnToGregorian leads to segfault (in optimized builds)
| From: | cataphract@php.net | Date: | Tue, 27 Sep 2011 10:22:05 +0000 |
| Subject: | Bug #55797 [Opn->Csd]: Integer overflow in SdnToGregorian leads to segfault (in optimized builds) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163919@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55797&edit=1
ID: 55797
Updated by: cataphract@php.net
Reported by: cataphract@php.net
-Summary: Integer overflow leads to segfault in SdnToGregorian
(in optimized builds)
+Summary: Integer overflow in SdnToGregorian leads to segfault
(in optimized builds)
-Status: Open
+Status: Closed
Type: Bug
Package: Date/time related
Operating System: Linux/gcc
PHP Version: 5.3.8
-Assigned To:
+Assigned To: cataphract
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-09-27 10:21:36] cataphract@php.net
Description:
------------
SdnToGregorian has an integer overflow error.
This has already been fixed; this report is for reference.
See also bug #53574.
Test script:
---------------
(x86)
php -r 'print_r(cal_from_jd(882858030, CAL_GREGORIAN));
(amd64)
php -r 'print_r(cal_from_jd(9223372036854743639, CAL_GREGORIAN));'
Expected result:
----------------
No segfault
Actual result:
--------------
Segfault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55797&edit=1