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

List:       busybox
Subject:    Re: ash parse tree and stack boundaries
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2010-11-29 14:17:35
Message-ID: AANLkTimHf=4RMGaU31Qp+ZQSXgZM42Vzf9rXN9wPKQej () mail ! gmail ! com
[Download RAW message or body]

On Mon, Nov 29, 2010 at 2:47 PM, Alexander Shishkin <virtuoso@slind.org> wrote:
> Hi,
>
> There's a problem in busybox ash, which is running out of stack when parsing
> very long input (funnily same bug also exists in bash), like
>
> $ for i in $(seq 100000); do echo -n ":;"; done | busybox sh
> Segmentation fault

On a 32-bit system, 100000 needs 7 Mb of stack.
The default limit is 8. Therefore it does not crash.

I reproduced this SEGV with 200000.

-- 
vda
_______________________________________________
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