[Bug 8506] ash: corrupted expansion of ${#var} if $var contains UTF-8 characters

bugzilla at busybox.net bugzilla at busybox.net
Sun Jan 3 10:57:01 UTC 2016


https://bugs.busybox.net/show_bug.cgi?id=8506

--- Comment #5 from Hans PUFAL <hans.pufal at gmail.com> ---
An alternative solution, which I think is more robust is as follows:

Define a new char * variable named var_start in function varvalue initialising
it to the value of expdest :

At line 6583

    char *var_start = expdest;


Then at the end of varvalue, reset expdest to var_start if discard is true :

At line 6705 :

    if (discard)
        expdest = var_start;

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list