]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mappin...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 20 Jul 2026 14:34:24 +0000 (16:34 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 14:34:24 +0000 (14:34 +0000)
commit71f7a04f9aac4db44b04b9ac33f704f0eaf6eb18
tree355a94db07b8700d27d48a0acc4065c080449ee7
parentfd10c440248099c7fee3135c04d0a2dab7c47c74
[3.14] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mapping (GH-154259) (GH-154263)

NetBSD mremap() returns a mapping whose grown region is not backed when
growing a shared anonymous mapping, so accessing it crashes.  Reject it
with ValueError, as is already done on Linux.
(cherry picked from commit 542b98293108a84fa5d904fb6dcf8bfb5080ec93)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Lib/test/test_mmap.py
Misc/NEWS.d/next/Library/2026-07-20-18-30-00.gh-issue-154258.mmapresize.rst [new file with mode: 0644]
Modules/mmapmodule.c