]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713) (#144304)
authorVictor Stinner <vstinner@python.org>
Wed, 28 Jan 2026 14:15:39 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 14:15:39 +0000 (14:15 +0000)
commite752ea9eb9795fac7a26d268f67ab5ad416c92b4
treebddb5081a00e61a20e6720736dd6ab9ab1b09086
parentbc92e7878f252fffbabfce6a0a453f99248b5f94
[3.13] gh-144194: Fix mmap failure check in perf_jit_trampoline.c (#143713) (#144304)

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.

(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