Date: Sun, 29 Sep 1996 02:51:26 +1000 From: Bruce Evans <bde@zeta.org.au> To: FreeBSD-hackers@FreeBSD.org, guido@gvr.win.tue.nl Subject: Re: stack Message-ID: <199609281651.CAA00660@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>When I allocate something on the stack, isn't it supposed to be completely
>zero?
Certainly not.
>like:
>main(int argc, char **argv) {
> char buf[1000];
>
>...
>}
>
>Then buf should be zero, or am I missing something here?
Stack variables in main() are often zero under multi-tasking systems
because the system starts processes with clean pages for security
reasons and nothing has used the stack yet.
Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609281651.CAA00660>
