[Xfce4-commits] [apps/xfce4-taskmanager] 16/20: Properly bzero args (bug 14401)

noreply at xfce.org noreply at xfce.org
Wed May 30 22:00:30 CEST 2018


This is an automated email from the git hooks/post-receive script.

l   a   n   d   r   y       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-taskmanager.

commit 01abcbdd73377b8b416272d6714fabda59cad0a7
Author: rim <rozhuk.im at gmail.com>
Date:   Wed May 30 21:52:05 2018 +0200

    Properly bzero args (bug 14401)
---
 src/task-manager-bsd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/task-manager-bsd.c b/src/task-manager-bsd.c
index e5c9691..8094332 100644
--- a/src/task-manager-bsd.c
+++ b/src/task-manager-bsd.c
@@ -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;

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list