[GHC] #5688: instance Read Integer/Rational/Double readsPrec out of memory and crash due to exponential notation
GHC
cvs-ghc at haskell.org
Wed Dec 14 10:17:10 CET 2011
#5688: instance Read Integer/Rational/Double readsPrec out of memory and crash due
to exponential notation
---------------------------------+------------------------------------------
Reporter: gracjan | Owner:
Type: bug | Status: patch
Priority: highest | Milestone: 7.4.1
Component: libraries/base | Version: 6.12.3
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: Runtime crash
Difficulty: Unknown | Testcase:
Blockedby: | Blocking:
Related: |
---------------------------------+------------------------------------------
Comment(by maeder):
Before you call read for Integer you can/should check if your string has
at least one and only digits. Calling read is currently just as risky as
calling "{{{^}}}" yourself.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5688#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list