Bug #55797 [NEW]: Integer overflow leads to segfault in SdnToGregorian (in optimized builds)
| From: | cataphract@php.net | Date: | Tue, 27 Sep 2011 10:21:36 +0000 |
| Subject: | Bug #55797 [NEW]: Integer overflow leads to segfault in SdnToGregorian (in optimized builds) | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-163918@lists.php.net to get a copy of this message | ||
From: cataphract
Operating system: Linux/gcc
PHP version: 5.3.8
Package: Date/time related
Bug Type: Bug
Bug description:Integer overflow leads to segfault in SdnToGregorian (in optimized builds)
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 bug report at https://bugs.php.net/bug.php?id=55797&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55797&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55797&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55797&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55797&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55797&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55797&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55797&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55797&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55797&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55797&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55797&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55797&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55797&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55797&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55797&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55797&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55797&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55797&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55797&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55797&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55797&r=mysqlcfg