Bug 4616 - dd: invalid number when too big
Summary: dd: invalid number when too big
Status: RESOLVED WONTFIX
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 17:12 UTC by mikolaj
Modified: 2011-12-15 23:42 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 mikolaj 2011-12-14 17:12:22 UTC
This is a report for busybox in RHEL 5.7 installer. As I think the issue is
more related to busybox than RHELs installer, I'm reporting it here.


Sorry I don't have access to newer version of busybox, to check does the issue
exist in newer versions.


When I supply to big number dd(1) command fails with error 'invalid number' however it doesn't happen to dd(1) version from coreutils.



-sh-3.2# grep -e 'sda$' /proc/partitions
   8     0   35566479 sda

-sh-3.2# dd --help
BusyBox v1.2.0 (2011.07.22-08:19+0000) multi-call binary


-sh-3.2# dd if=/dev/zero of=/dev/sda seek=36411452416 count=8622592 bs=1
dd: invalid number `36411452416'



I did some testing here, but not sure at what number exactly it fails:



-sh-3.2# dd if=/dev/zero of=/dev/sda seek=5000000000 count=0 bs=1
dd: invalid number `5000000000'
-sh-3.2# dd if=/dev/zero of=/dev/sda seek=4000000000 count=0 bs=1
0+0 records in
0+0 records out
-sh-3.2#
Comment 1 Denys Vlasenko 2011-12-15 23:42:54 UTC
busybox-1.2.x internally use strtoul() to parse numbers fin dd options. Therefore they can't accept numbers larger than 2^32-1.

1.2.x is VERY old. Newer versions don't have this limitation.

Looks like WONTFIX to me...