[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 1/1] makedevs: set path size to match linux
From:       Maxime Coste <mawww () kakoune ! org>
Date:       2017-06-27 19:45:13
Message-ID: 20170627194513.GA4725 () nekage
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic