Date: Fri, 19 Dec 2008 06:50:15 +0000 (UTC) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/procstat procstat_files.c procstat_vm.c Message-ID: <200812190650.mBJ6oPiN053966@repoman.freebsd.org>
index | next in thread | raw e-mail
marcus 2008-12-19 06:50:15 UTC
FreeBSD src repository
Modified files:
usr.bin/procstat procstat_files.c procstat_vm.c
Log:
SVN rev 186315 on 2008-12-19 06:50:15Z by marcus
Do not segfault when procstat -f or procstat -v is called on a process not
owned by the current user. If kinfo_getfile() or kinfo_getvmmap() return
NULL, simply exit, and do not try and derefernce the memory.
Reviewed by: peter
Approved by: peter
Revision Changes Path
1.9 +2 -0 src/usr.bin/procstat/procstat_files.c
1.5 +2 -0 src/usr.bin/procstat/procstat_vm.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812190650.mBJ6oPiN053966>
