#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 gracjan):
Anecdotal evidence from Ruby:
{{{
~/devel$ ruby -e 'puts Float( (10 ^ 1000).to_s + "e-1000")'
-e:1: warning: Float 994e-1000 out of range
0.0
~/devel$ ruby -e 'puts Float( "0." + "0"*1000 + "1e1001" )'
1.0
}}}
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5688#comment:44>
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