[Bug 8506] New: ash: corrupted expansion of ${#var} if $var contains UTF-8 characters
bugzilla at busybox.net
bugzilla at busybox.net
Thu Dec 3 19:55:37 UTC 2015
https://bugs.busybox.net/show_bug.cgi?id=8506
Bug ID: 8506
Summary: ash: corrupted expansion of ${#var} if $var contains
UTF-8 characters
Product: Busybox
Version: 1.24.x
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: martijn at inlv.org
CC: busybox-cvs at busybox.net
Created attachment 6246
--> https://bugs.busybox.net/attachment.cgi?id=6246&action=edit
Examples of corrupted output of ${#var}
Given a variable $var, the expression ${#var} is supposed to expand to the
length in characters of that variable's contents. As of busybox 1.24.x ash, the
expansion of ${#var} is corrupted if $var contains any UTF-8 characters. For
each UTF-8 character, one byte of the variable's content is prepended to the
number.
Bug confirmed in busybox-1.24.1 ash and busybox-current ash. The bug was *not*
present in busybox-1.23.2 ash and prior.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list