Don't try to calculate a time over the conservative failure boundary.
authorMichael G. Schwern <schwern@pobox.com>
Sun, 31 Jan 2010 11:22:08 +0000 (03:22 -0800)
committerCraig A. Berry <craigberry@mac.com>
Fri, 5 Feb 2010 18:49:05 +0000 (12:49 -0600)
commitfc003d4b0d731bb670adb07e168c683339ec57e7
treeb9a1f4d99883196df80277597ec950669ec41240
parent23d72198749db53785b1c67cd1a37697afb95fc0
Don't try to calculate a time over the conservative failure boundary.

Otherwise gmtime(2**66) will cause a very, very, very long loop and
DOS Perl.

Add a test that very, very large times don't send gmtime and localtime into a loop

Had to fix some revealed mistakes in op/time.t when warnings were turned on.

Fix Time::gmtime and Time::localtime tests to match the new limits of gm/localtime.
MANIFEST
lib/Time/gmtime.t
lib/Time/localtime.t
pod/perldiag.pod
pp_sys.c
t/op/time.t
t/op/time_loop.t [new file with mode: 0644]