Date: Fri, 19 Dec 2008 06:47:59 +0000 (UTC) From: Joe Marcus Clarke <marcus@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/lib/libutil kinfo_getfile.c kinfo_getvmmap.c Message-ID: <200812190648.mBJ6m9Zr053750@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcus 2008-12-19 06:47:59 UTC FreeBSD src repository Modified files: lib/libutil kinfo_getfile.c kinfo_getvmmap.c Log: SVN rev 186314 on 2008-12-19 06:47:59Z by marcus Initialize the cntp pointer to 0 prior to doing any work so that callers don't try to iterate through garbage or NULL memory. Additionally, return NULL instead of 0 on error. Reviewed by: peter Approved by: peter Revision Changes Path 1.3 +5 -4 src/lib/libutil/kinfo_getfile.c 1.3 +5 -4 src/lib/libutil/kinfo_getvmmap.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812190648.mBJ6m9Zr053750>