mirror of
https://github.com/python/cpython.git
synced 2026-05-07 05:01:13 -04:00
3fe03ccea6
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).