>Isn't that what alloca() is for?   (Ignoring the simple fact that alloca()
>is actually horribly broken since it never tells you if it's failed, just
>lets you corrupt your stack when you ask for too much memory.)


Nah, it doesn't corrupt your sstack, it just overflows into the guard page
and then the libraries.  (So you won't corrupt the stack but other stuff)

But for allocations of "small" sizes alloca() is not more dangerous than
calling another function.

Casper

_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to