]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713)
authorstratakis <cstratak@redhat.com>
Wed, 28 Jan 2026 13:30:17 +0000 (14:30 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 13:30:17 +0000 (13:30 +0000)
commit8fe8a94a7c050bc16cac9ec300f89c0f389f9a44
tree0593748bc73461c7c39be57968242ad6a0076c4f
parent08d7bd28fecca524c648dda240022add704b8f8a
gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713)

mmap() returns MAP_FAILED ((void*)-1) on error, not NULL. The current
check never detects mmap failures, so jitdump initialization proceeds
even when the memory mapping fails.
Misc/NEWS.d/next/Core_and_Builtins/2026-01-23-20-20-42.gh-issue-144194.IbXfxd.rst [new file with mode: 0644]
Python/perf_jit_trampoline.c