Fix parsing of RealFloat with huge exponents (#7034).
authorPaolo Capriotti <p.capriotti@gmail.com>
Mon, 2 Jul 2012 11:54:57 +0000 (12:54 +0100)
committerPaolo Capriotti <p.capriotti@gmail.com>
Mon, 2 Jul 2012 11:54:57 +0000 (12:54 +0100)
commit4226bae42fdd666c15190ac2f8784547d3fbad5f
tree2e9fae9068dd35c0d1af63ec3963df438d3cbef5
parent7695a8baf8253198abf8c7a4e77f5c432d887371
Fix parsing of RealFloat with huge exponents (#7034).

Ensure numberToRangedRational returns Nothing immediately if the
exponent is outside Int range, so that we avoid an integer overflow
later.
Text/Read/Lex.hs
tests/T7034.hs [new file with mode: 0644]
tests/T7034.stdout [new file with mode: 0644]
tests/all.T