[Bug 191263] [patch] dd(1): Incorrect casting of arguments
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Sep 21 21:44:37 UTC 2014
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191263
--- Comment #4 from will at worrbase.com ---
Old:
[ worr on terra ] ( ~ ) % dd if=/dev/zero of=/dev/null
count=18446744073709551616
dd: count: Result too large
[ worr on terra ] ( ~ ) % dd if=/dev/zero of=/dev/null
count=18446744073709551615
dd: count cannot be negative
[ worr on terra ] ( ~ ) % dd if=/dev/zero of=/dev/null
count=18446744073709551614
dd: count cannot be negative
New:
[ root on dev ] ( ~ ) # ./base/bin/dd/dd if=/dev/zero of=/dev/null
count=18446744073709551616
dd: count: Result too large
[ root on dev ] ( ~ ) # ./base/bin/dd/dd if=/dev/zero of=/dev/null
count=18446744073709551615
dd: count: Result too large
[ root on dev ] ( ~ ) # ./base/bin/dd/dd if=/dev/zero of=/dev/null
count=18446744073709551614
^C1997704+0 records in
1997704+0 records out
1022824448 bytes transferred in 1.030049 secs (992986238 bytes/sec)
My last patch had a small error in it where it wouldn't accept SIZE_MAX as an
argument to count (special handling happens here for the case where count is
unspecified). What should be the final patch is now posted.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list