From owner-freebsd-hackers Sat Sep 28 09:04:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id JAA17764 for hackers-outgoing; Sat, 28 Sep 1996 09:04:17 -0700 (PDT) Received: from gvr.win.tue.nl (root@gvr.win.tue.nl [131.155.210.19]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id JAA17682; Sat, 28 Sep 1996 09:04:10 -0700 (PDT) Received: by gvr.win.tue.nl (8.6.13/1.53) id SAA05989; Sat, 28 Sep 1996 18:03:39 +0200 From: guido@gvr.win.tue.nl (Guido van Rooij) Message-Id: <199609281603.SAA05989@gvr.win.tue.nl> Subject: Re: stack To: dg@root.com Date: Sat, 28 Sep 1996 18:03:38 +0200 (MET DST) Cc: dyson@FreeBSD.org, FreeBSD-hackers@FreeBSD.org In-Reply-To: <199609281601.JAA02187@root.com> from David Greenman at "Sep 28, 96 09:01:09 am" X-Mailer: ELM [version 2.4ME+ PL17 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk David Greenman wrote: > >I used exactly this program: > >main() { > > char buf[1000]; > > > > write(1, buf, 1000); > >} > > > >The resulting file did not conatin only zero's. I think this is weird. > > You might think it's weird, but it is not a bug or even unexpected. Stack > space is not guaranteed to be initialized to any particular value. I thought this was guarantueed because when the `feature' was dropped to many programs discontinued working.. -Guido