#5688: instance Read Integer/Rational/Double readsPrec out of memory and crash
due
to exponential notation
-------------------------------+--------------------------------------------
Reporter: gracjan | Owner: igloo
Type: bug | Status: new
Priority: highest | Milestone: 7.4.2
Component: libraries/base | Version: 6.12.3
Resolution: | Keywords:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
Failure: Runtime crash | Difficulty: Unknown
Testcase: | Blockedby:
Blocking: | Related:
-------------------------------+--------------------------------------------
Comment(by igloo):
ruby does seem to have a limit, although I'm not quite sure what it
corresponds to:
{{{
$ ruby -e 'puts Float( "0." + "0"*20321 + "1e20321" )'
9.88131291682493e-324
$ ruby -e 'puts Float( "0." + "0"*20322 + "1e20322" )'
-e:1: warning: Float 0.000000000000000000... out of range
0.0
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5688#comment:48>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs