Edit report at https://bugs.php.net/bug.php?id=55797&edit=1

 ID:                 55797
 Updated by:         cataphr...@php.net
 Reported by:        cataphr...@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] cataphr...@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

Reply via email to