SIGN IN SIGN UP

gh-117755: Fix mimalloc for huge allocation on s390x (#117809)

Fix mimalloc allocator for huge memory allocation (around
8,589,934,592 GiB) on s390x.

Abort allocation early in mimalloc if the number of slices doesn't
fit into uint32_t, to prevent a integer overflow (cast 64-bit
size_t to uint32_t).
V
Victor Stinner committed
3fe03ccea61121b05e933013f76aa02f690014c1
Parent: e05d202
Committed by GitHub <noreply@github.com> on 4/16/2024, 8:34:12 PM