Opened 11 years ago
Last modified 10 years ago
#39 new defect
Missing bounds checks.
Reported by: | Ben Lippmeier | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | repa | Version: | 3.2.2 |
Keywords: | Cc: |
Description
> let arr = fromListUnboxed (Z :. 3 :. 5) [1..15] :: Array U DIM2 Int > arr ! (Z:.2:.4 :: DIM2) 15 > reshape (Z:.15) arr ! (Z:.14 :: DIM1) 15 > reshape (Z:.15) arr ! (Z:.15 :: DIM1) 1076040336 > reshape (Z:.15) arr ! (Z:.(-15) :: DIM1) 140454916268033 > (fromListUnboxed (Z :. 10) [1..10] :: Array U DIM1 Int) ! (Z:.10 :: DIM1) *** Exception: ./Data/Vector/Generic.hs:244 ((!)): index out of bounds (10,10)
Change History (3)
comment:1 Changed 11 years ago by
comment:2 Changed 10 years ago by
Milestone: | 4.0.0 |
---|
comment:3 Changed 10 years ago by
Component: | library → repa |
---|
Note: See
TracTickets for help on using
tickets.
The extract function is also unsafe.