From 03184021ba3f4bb8414ffc267c687db312e69d05 Mon Sep 17 00:00:00 2001 From: GNU Libc Maintainers Date: Tue, 3 Oct 2023 18:14:06 +0100 Subject: [PATCH] git-task_info_count commit baeb4015426e6724127829ead4fb39cfb377a3d9 Author: Flavio Cruz Date: Tue May 16 22:59:24 2023 -0400 Use TASK_THREAD_TIMES_INFO_COUNT when calling task_info with TASK_THREAD_TIMES_INFO This hasn't caused any problems yet but we are passing a pointer to struct task_thread_times_info which can cause problems if we populate over the existing size of the struct. Message-Id: Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name git-task_info_count.diff --- sysdeps/mach/clock_gettime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysdeps/mach/clock_gettime.c b/sysdeps/mach/clock_gettime.c index cc8c821a7..be775ed2b 100644 --- a/sysdeps/mach/clock_gettime.c +++ b/sysdeps/mach/clock_gettime.c @@ -62,7 +62,7 @@ __clock_gettime (clockid_t clock_id, struct timespec *ts) time_value_add (&t, &bi.system_time); /* Live threads CPU time. */ - count = TASK_EVENTS_INFO_COUNT; + count = TASK_THREAD_TIMES_INFO_COUNT; err = __task_info (__mach_task_self (), TASK_THREAD_TIMES_INFO, (task_info_t) &tti, &count); if (err) -- 2.30.2