Date: Fri, 19 Dec 2008 20:23:38 +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: <200812192023.mBJKNn3W064998@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcus 2008-12-19 20:23:38 UTC FreeBSD src repository Modified files: (Branch: RELENG_7_1) usr.bin/procstat procstat_files.c procstat_vm.c Log: SVN rev 186340 on 2008-12-19 20:23:38Z by marcus MFC r186315: 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. Approved by: re (kib) Revision Changes Path 1.5.2.4.2.3 +2 -0 src/usr.bin/procstat/procstat_files.c 1.2.2.2.2.3 +2 -0 src/usr.bin/procstat/procstat_vm.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812192023.mBJKNn3W064998>