severity 378695 normal
tag 378695 confirmed patch
found 378695 1:3.2.7-6
thanks

#378695 - procps: top seg fault if the dir "/proc" is not listable (readable)
http://bugs.debian.org./378695

--- procps-3.2.7.orig/top.c
+++ procps-3.2.7/top.c
@@ -1097,6 +1097,11 @@
    else
       PT = openproc(flags);
 
+   if (PT==NULL) {
+          std_err(strerror(errno));
+          exit(1);
+   }
+
    // i) Allocated Chunks:  *Existing* table;  refresh + reuse
    if (!(CHKw(Curwin, Show_THREADS))) {
       while (curmax < savmax) {



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to