[Bug 191263] [patch] dd(1): Incorrect casting of arguments

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Oct 21 18:42:40 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191263

--- Comment #6 from Kurt Jaeger <pi at FreeBSD.org> ---
(In reply to will from comment #5)
> Created attachment 147543 [details]
> Better argument handling patch with fix for count=SIZE_MAX

Thanks. Patch build-tested against src/bin/dd/ from HEAD, builds fine on
10.0p9-amd64.

You have 3 test cases, with ...16, ...15 and ...14 as count values for dd.

Interestingly the ...15 case behaves different from your example ?

$ ./dd if=/dev/zero of=/dev/null count=18446744073709551615
0+0 records in
0+0 records out
0 bytes transferred in 0.000007 secs (0 bytes/sec)

What's the difference ?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list