summaryrefslogtreecommitdiff
path: root/libraries/array
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2016-12-15 17:47:08 -0500
committerBen Gamari <ben@smart-cactus.org>2016-12-15 18:49:38 -0500
commitcd4b202f24da928adf66c05443b457002ab6a3e1 (patch)
tree4cf4eaeec9aa9bac18cfa87037257745eee7cfbf /libraries/array
parent81c49562570a403e8470f73f4decd3e0cb891983 (diff)
downloadhaskell-cd4b202f24da928adf66c05443b457002ab6a3e1.tar.gz
array: Check for integer overflow during allocation
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.
Diffstat (limited to 'libraries/array')
m---------libraries/array0
1 files changed, 0 insertions, 0 deletions
diff --git a/libraries/array b/libraries/array
-Subproject bab2c234f176fe3e95443cbe4387833da22f7e5
+Subproject b8a8d09ddc20a9c9d99bd03b136718b543edb87