mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
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: <ZGRDDNcOM2hA3CuT@jupiter.tail36e24.ts.net>
This commit is contained in:
parent
45af5422c1
commit
3f7b800d54
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user