#2120: Arrays allow out-of-bounds indexes
----------------------------------+-----------------------------------------
    Reporter:  amthrax            |        Owner:                  
        Type:  bug                |       Status:  closed          
    Priority:  high               |    Milestone:  6.12.1          
   Component:  libraries (other)  |      Version:  6.8.2           
    Severity:  normal             |   Resolution:  fixed           
    Keywords:                     |   Difficulty:  Unknown         
    Testcase:                     |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple   |  
----------------------------------+-----------------------------------------
Changes (by igloo):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fixed by these patches in array and base:
 {{{
 Sun Jul 19 16:29:31 BST 2009  Ian Lynagh <[email protected]>
   * Improve the index checking for array accesses; fixes #2120 #2669
   As well as checking that offset we are reading is actually inside the
   array, we now also check that it is "in range" as defined by the Ix
   instance. This fixes confusing behaviour (#2120) and improves some error
   messages (#2669).

 Sun Jul 19 16:32:28 BST 2009  Ian Lynagh <[email protected]>
   * Improve the index checking for array accesses; fixes #2120 #2669
   As well as checking that offset we are reading is actually inside the
   array, we now also check that it is "in range" as defined by the Ix
   instance. This fixes confusing behaviour (#2120) and improves some error
   messages (#2669).
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2120#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to