summaryrefslogtreecommitdiff
path: root/llvm-targets
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2022-08-05 23:56:13 -0400
committerBen Gamari <ben@smart-cactus.org>2022-08-08 10:18:13 -0400
commit9465b8f7c73b156afb058bde32e68a01965f14a0 (patch)
tree4c3765780b1fffefafa92e0f60293f1a41308167 /llvm-targets
parent78d04cfadfd728bb088b08b1e88905b43cc0360c (diff)
downloadhaskell-9465b8f7c73b156afb058bde32e68a01965f14a0.tar.gz
rts: Ensure that Array# card arrays are initialized
In #19143 I noticed that newArray# failed to initialize the card table of newly-allocated arrays. However, embarrassingly, I then only fixed the issue in newArrayArray# and, in so doing, introduced the potential for an integer underflow on zero-length arrays (#21962). Here I fix the issue in newArray#, this time ensuring that we do not underflow in pathological cases. Fixes #19143.
Diffstat (limited to 'llvm-targets')
0 files changed, 0 insertions, 0 deletions