[GHC] #229: Integer overflow in array allocation
GHC
ghc-devs at haskell.org
Mon Dec 26 05:26:39 UTC 2016
#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
More information about the ghc-tickets
mailing list