Bug #53574 [ReO->Csd]: Integer overflow in SdnToJulian
Edit report at https://bugs.php.net/bug.php?id=53574&edit=1
ID: 53574
Updated by: cataphract@php.net
Reported by: m dot kocielski at gmail dot com
Summary: Integer overflow in SdnToJulian
-Status: Re-Opened
+Status: Closed
Type: Bug
Package: Calendar related
Operating System: Linux
PHP Version: 5.5.0-dev
Assigned To: cataphract
Block user comment: N
Private report: N
New Comment:
Closing, see bug #55797.
Previous Comments:
------------------------------------------------------------------------
[2011-09-27 00:53:22] tyrael@php.net
Automatic comment from SVN on behalf of tyrael
Revision: http://svn.php.net/viewvc/?view=revision&revision=317366
Log: split the ext/calendar/tests/bug53574.phpt into two test, as we expect different result on 32
and 64 bit
------------------------------------------------------------------------
[2011-09-26 22:38:01] cataphract@php.net
Automatic comment from SVN on behalf of cataphract
Revision: http://svn.php.net/viewvc/?view=revision&revision=317360
Log: - Fixed bug in SdnToGregorian (see comments on #53574, though that bug is about
another function). NEWS & tests tomorrow.
------------------------------------------------------------------------
[2011-09-26 21:27:20] tyrael@php.net
on 64bit:
tyrael@phpize:~/checkouts/php-src/trunk$ ./sapi/cli/php -r
'print_r(cal_from_jd(9223372036854743639, CAL_GREGORIAN));'
Segmentation fault
------------------------------------------------------------------------
[2011-09-26 20:56:50] tyrael@php.net
on 32bit with the current trunk:
tyrael@phpize32:~/checkouts/php-src/trunk$ ./sapi/cli/php -r
'print_r(cal_from_jd(882858030, CAL_GREGORIAN));'
Segmentation fault
I will split the test(ext/calendar/tests/bug53574.log) into two separate test, one
for 32bit, one for 64bit, as the EXPECT cannot test both case in one test easily.
------------------------------------------------------------------------
[2010-12-20 00:47:19] cataphract@php.net
This bug has been fixed in SVN.
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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=53574
--
Edit this bug report at https://bugs.php.net/bug.php?id=53574&edit=1
Thread (5 messages)