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

List:       busybox
Subject:    Re: [PATCH] ash: refresh stack pointers after makestrspace in
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2010-04-26 12:27:29
Message-ID: t2w1158166a1004260527ifad77d3an87e3d8a92f47296d () mail ! gmail ! com
[Download RAW message or body]

On Thu, Apr 22, 2010 at 3:37 PM, Colin Watson <cjwatson@ubuntu.com> wrote:
> Without this, _rmescapes sometimes returns random garbage while
> performing parameter expansions such as ${foo#bar}, in the event that
> the allocation of r happens to need to reallocate the stack and hence
> invalidate str and p.  I'd love to provide a test case but unfortunately
> it's dependent on exact stack layout, so I don't have anything simpler
> than the situation described in
> https://bugs.launchpad.net/ubuntu/+source/partman-base/+bug/527401/comments/23
> which involved a sequence of foo="${foo#*, }" expansions on a long
> string inside our RAID configuration tool.

Please post this case anyway.
-- 
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