]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] 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:30:40 +0000 (16:30 +0200)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2026 14:30:40 +0000 (14:30 +0000)
commit1ef605cf7e54093ab6870471a8a86e9980fd98ec
tree8d0b9d92abf4674117b3cf5f4ce8bfb61a882d3e
parent76b58676d8b51a4e151c588a8319caa4e8919dd3
[3.13] gh-154258: Fix mmap.resize() crash on NetBSD growing a shared anonymous mapping (GH-154259) (GH-154264)

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