[PATCH 1/1] makedevs: set path size to match linux
Maxime Coste
mawww at kakoune.org
Tue Jun 27 19:45:13 UTC 2017
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
More information about the busybox
mailing list