From owner-cvs-all Fri Oct 29 9:39:18 1999 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 9D6B814DB0; Fri, 29 Oct 1999 09:39:09 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id SAA04564; Fri, 29 Oct 1999 18:38:30 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Greg Lehey Cc: Sheldon Hearn , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/vipw vipw.c In-reply-to: Your message of "Mon, 25 Oct 1999 10:02:00 MDT." <19991025100200.60989@mojave.worldwide.lemis.com> Date: Fri, 29 Oct 1999 18:38:29 +0200 Message-ID: <4562.941215109@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk 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