Re: [GHC] #229: Integer overflow in array allocation

#229: Integer overflow in array allocation -------------------------------------+------------------------------------- Reporter: josefs | Owner: bgamari Type: bug | Status: closed Priority: high | Milestone: 8.2.1 Component: Core Libraries | Version: 7.9 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by akio): * cc: akio (added) Comment: Sorry if I'm missing something, but the overflow check looks like it may be incorrect. For example, if `Int` is 32 bits wide, `0x58000000 * 4 :: Int` is greater than `0x58000000`, so it passes the test, but the multiplication is still overflowing. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/229#comment:31 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC