Bug 2593 - uni_stat_t uni_stat should be memory zero be call unicode_conv_to_printable
Summary: uni_stat_t uni_stat should be memory zero be call unicode_conv_to_printable
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.17.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-20 05:29 UTC by dengxf
Modified: 2010-10-28 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.