Date: Sat, 28 Sep 1996 10:50:32 -0500 (EST) From: "John S. Dyson" <toor@dyson.iquest.net> To: guido@gvr.win.tue.nl (Guido van Rooij) Cc: FreeBSD-hackers@FreeBSD.org Subject: Re: stack Message-ID: <199609281550.KAA01258@dyson.iquest.net> In-Reply-To: <199609281520.RAA05793@gvr.win.tue.nl> from "Guido van Rooij" at Sep 28, 96 05:20:52 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> When I allocate something on the stack, isn't it supposed to be completely > zero? > like: > main(int argc, char **argv) { > char buf[1000]; > > ... > } > > Then buf should be zero, or am I missing something here? > The first time that you use a page the kernel will demand zero it. But if you have used the stack space before, it will be whatever you left in it. John
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609281550.KAA01258>