Em Fri, Jul 05, 2002 at 10:49:54PM +0200, Matthias Andree escreveu:
I can't believe I'm reading this, I truly hope I'm mistaken. I think you
are talking about the situation where one has the overcommit bit
enabled.
Linux always overcommits (unless I missed the change).
$ cat /proc/sys/vm/overcommit_memory
0
Default setting, I didn't touch it (2.4.18).
alloca() stinks. Apart from that, for the user, it makes no difference
Yep. And the manpage is sort of wrong.
if the program exits uncleanly because it fails to do a graceful exit
(memory pressure may even have increased, the "graceful exit" may need
more memory) or because alloca() returned a pointer to an overcommitted
page.
There is a security implication here, writing/reading where you shouldn't.