[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: [Bug 8506] New: ash: corrupted expansion of ${#var} if $var contains UTF-8 characters
From: bugzilla () busybox ! net
Date: 2015-12-03 19:55:37
Message-ID: bug-8506-161 () https ! bugs ! busybox ! net/
[Download RAW message or body]
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@busybox.net
Reporter: martijn@inlv.org
CC: busybox-cvs@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.
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic