Properly bzero args (bug 14401)
This commit is contained in:
@@ -118,6 +118,7 @@ gboolean get_task_list (GArray *task_list)
|
||||
for (;; size *= 2) {
|
||||
if ((args = realloc(args, size)) == NULL)
|
||||
errx(1,"failed to allocate memory (size=%zu) for argv structures of pid %d", size, t.pid);
|
||||
bzero(args, size);
|
||||
mib[0] = CTL_KERN;
|
||||
mib[1] = KERN_PROC_ARGS;
|
||||
mib[2] = t.pid;
|
||||
|
||||
Reference in New Issue
Block a user