Date: Sun, 21 Sep 2014 21:44:38 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 191263] [patch] dd(1): Incorrect casting of arguments Message-ID: <bug-191263-8-jt6MLxYKSF@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-191263-8@https.bugs.freebsd.org/bugzilla/> References: <bug-191263-8@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191263 --- Comment #4 from will@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-191263-8-jt6MLxYKSF>