https://github.com/python/cpython/commit/e4e36a716a779887d5b8d2411810a2bec60c4df2 commit: e4e36a716a779887d5b8d2411810a2bec60c4df2 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2026-01-22T17:29:57Z summary:
[3.13] gh-142779: Initialize reserved field for proper padding (GH-142780) (#144160) 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 a44a74f58df85a..3a63dd73bc47cc 100644 --- a/Python/perf_jit_trampoline.c +++ b/Python/perf_jit_trampoline.c @@ -372,6 +372,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]
