
#14850: mallocBytes allows underflow -------------------------------------+------------------------------------- Reporter: wyager | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: libraries/base | Version: 8.0.2 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Poor/confusing | Unknown/Multiple error message | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): Not to gum up the works, but is there a comprehensive list of `Int`-consuming functions like `mallocBytes` that should have an explicit overflow check? If so, perhaps one could just send that list to the libraries mailing list, and see if folks are OK with changing all of their `Int` arguments to `Word`. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14850#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler