Skip to content
  • Ben Gamari's avatar
    array: Check for integer overflow during allocation · cd4b202f
    Ben Gamari authored
    This fixes #229, where creating a new array can cause array to allocate
    a smaller array than it thinks it allocates due to integer overflow,
    resulting in memory unsafety.
    
    This breaks the rts/overflow1 test, which relied on this unchecked
    overflow. I fix it by reimplementing the test in terms of newByteArray#
    directly.
    
    Updates the array submodule.
    cd4b202f