Date: Fri, 29 Oct 1999 18:38:29 +0200 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Greg Lehey <grog@lemis.com> Cc: Sheldon Hearn <sheldonh@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/vipw vipw.c Message-ID: <4562.941215109@critter.freebsd.dk> In-Reply-To: Your message of "Mon, 25 Oct 1999 10:02:00 MDT." <19991025100200.60989@mojave.worldwide.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <19991025100200.60989@mojave.worldwide.lemis.com>, Greg Lehey writes: >On Monday, 25 October 1999 at 2:46:59 -0700, Sheldon Hearn wrote: >> sheldonh 1999/10/25 02:46:59 PDT >> >> Modified files: >> usr.sbin/vipw vipw.c >> Log: >> Do not rely on malloc() to zero-fill allocated memory, since it is >> not documented as doing so. This fixes a potential segmentation >> violation. > >For performance reasons, I'd strongly hope that malloc() doesn't clear >memory. RTFM ? -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4562.941215109>