On Tue, Jun 27, 2017 at 01:18:14PM -0400, Michael Conrad wrote: > I guess I'll retract this, unless someone else knows something. I remember > someone warning about this behavior, but I can't find a reference and I just > tested on 32-bit and allocating stack buffers up to the maximum stack size > are all shifting the stack pointer by the size of the buffer. Declaring a > buffer larger than the maximum stack size results in an instant segfault > when the function is called. I suspect you were actually making reference to the alloca function, that could end-up using a malloc under the hood for big allocations, but would use stack based allocations in other cases.
Maxime _______________________________________________ busybox mailing list busybox@busybox.net http://lists.busybox.net/mailman/listinfo/busybox