https://github.com/python/cpython/commit/4f4c20412b7330811793b2a5e3fbc72dc84996b7 commit: 4f4c20412b7330811793b2a5e3fbc72dc84996b7 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-01-25T17:44:33Z summary:
[3.14] gh-142779: Initialize reserved field for proper padding (GH-142780) (#144159) gh-142779: Initialize reserved field for proper padding (GH-142780) The jitdump specification specifies a reserved field for padding. Initialize it so no garbage data is embedded in the jitdump files. (cherry picked from commit 77bf4ba732a8736910bd6b7ec5a58b8ee833c95f) Co-authored-by: stratakis <[email protected]> files: M Python/perf_jit_trampoline.c diff --git a/Python/perf_jit_trampoline.c b/Python/perf_jit_trampoline.c index fafe393065bf6b..c0f314a7f6522b 100644 --- a/Python/perf_jit_trampoline.c +++ b/Python/perf_jit_trampoline.c @@ -373,6 +373,7 @@ static void perf_map_jit_write_header(int pid, FILE* out_file) { header.version = 1; // Current jitdump version header.size = sizeof(Header); // Header size for validation header.elf_mach_target = GetElfMachineArchitecture(); // Target architecture + header.reserved = 0; // padding reserved for future use header.process_id = pid; // Process identifier header.time_stamp = get_current_time_microseconds(); // Creation time header.flags = 0; // No special flags currently used _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
