[BusyBox] bug#1284: du overflows with > 4.0 Gb of files in one directory

Ico Doornekamp ico at pruts.nl
Fri Nov 8 14:21:04 UTC 2002


Package: Busybox
Version: 0.60.5
Version: 0.61.pre
Severity: normal

The du command seems to print the wrong totals when there's more then 4.0 Gb
of files in one directory when BB_FEATURE_HUMAN_READABLE is defined.
 
In du.c:print_normal() the total size is multiplied by 1024 (<<10) when calling
make_human_readable_str(), thus overflowing the long size.

Tested versions : 0.60.5 / CVS 0.61.pre
Arch            : i386
Kernel          : 2.4.19




More information about the busybox mailing list