Date: Fri, 19 Dec 2008 20:22:55 +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: <200812192023.mBJKN3TJ064935@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcus 2008-12-19 20:22:55 UTC FreeBSD src repository Modified files: (Branch: RELENG_7_1) lib/libutil kinfo_getfile.c kinfo_getvmmap.c Log: SVN rev 186339 on 2008-12-19 20:22:55Z by marcus MFC r186314: 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. Approved by: re (kib) Revision Changes Path 1.2.4.2 +5 -4 src/lib/libutil/kinfo_getfile.c 1.2.4.2 +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?200812192023.mBJKN3TJ064935>