]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-117755: Fix mimalloc for huge allocation on s390x (#117809)
authorVictor Stinner <vstinner@python.org>
Tue, 16 Apr 2024 20:34:12 +0000 (22:34 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Apr 2024 20:34:12 +0000 (20:34 +0000)
commit3fe03ccea61121b05e933013f76aa02f690014c1
tree8da922b3d5a618c6324c6ad6d9bf613d639a9d52
parente05d202ebf0904cf0a980fde76f4a38bb8dc7c3b
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).
Misc/NEWS.d/next/Core and Builtins/2024-04-12-12-28-49.gh-issue-117755.6ct8kU.rst [new file with mode: 0644]
Objects/mimalloc/segment.c