Bug 2593

Summary: uni_stat_t uni_stat should be memory zero be call unicode_conv_to_printable
Product: Busybox Reporter: dengxf <dengxf>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.17.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description dengxf 2010-09-20 05:29:48 UTC
we use df -m in a script, an daemon program call it and get wrong output.
then trace it found int df.c:180. after call unicode_conv_to_printable

uni_stat.unicode_width < 0

when i memset uni_stat first, all works right.

and also found some use of uni_stat, but none zero memset.
Comment 1 Denys Vlasenko 2010-10-28 22:49:57 UTC
Thanks!

Fix is here:

http://busybox.net/downloads/fixes-1.17.3/busybox-1.17.3-unicode.patch

Please reopen the bug if the patch doesn't fix the problem.