]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-144194: Fix mmap failure check in perf_jit_trampoline.c (GH-143713) (#144301)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Jan 2026 13:57:19 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 13:57:19 +0000 (13:57 +0000)
commit157e946d78a501df8356af8c8c37b03b0518b6e9
tree75b6b534602a1b454842f7291edab6be87504a3e
parentb82b12bc80373e2cfd0c0bed273e55e67640cdfd
[3.14] gh-144194: Fix mmap failure check in perf_jit_trampoline.c (GH-143713) (#144301)

gh-144194: Fix mmap failure check in perf_jit_trampoline.c (GH-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.
(cherry picked from commit 8fe8a94a7c050bc16cac9ec300f89c0f389f9a44)

Co-authored-by: stratakis <cstratak@redhat.com>
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