#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):

 Replying to [comment:41 igloo]:
 ? but the second and third should break (I'm not sure what they should
 return. Whichever of Infinity, -Infinity, NaN and 0.0 best fits the
 implementation, I guess).

 Or perhaps if the exponent is `> FLT_MAX_EXP`, `< FLT_MIN_EXP`, `>
 DBL_MAX_EXP` or `< DBL_MIN_EXP` then read should fail?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5688#comment:43>
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

Reply via email to