freebsd-skq/bin/dd
Kurt Jaeger 179eb7112b bin/dd: Fix incorrect casting of arguments
dd(1) casts many of its numeric arguments from uintmax_t to intmax_t
and back again to detect whether or not the original arguments were
negative. This caused wrong behaviour in some boundary cases:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count cannot be negative

After the fix:

$ dd if=/dev/zero of=/dev/null count=18446744073709551615
dd: count: Result too large

PR:		191263
Submitted by:	will@worrbase.com
Approved by:	cognet@
2014-10-27 11:38:17 +00:00
..
args.c bin/dd: Fix incorrect casting of arguments 2014-10-27 11:38:17 +00:00
conv_tab.c Make dd's signal handler async safe. 2013-05-10 18:43:36 +00:00
conv.c bin/dd: Fix incorrect casting of arguments 2014-10-27 11:38:17 +00:00
dd.1 Update the date for last example. 2014-08-30 02:12:58 +00:00
dd.c bin/dd: Fix incorrect casting of arguments 2014-10-27 11:38:17 +00:00
dd.h bin/dd: Fix incorrect casting of arguments 2014-10-27 11:38:17 +00:00
extern.h Make C_* contants fit in 32 bits again by using 4 unused bits. 2014-04-03 06:32:02 +00:00
gen.c
Makefile
misc.c Incorporate feedback from bde and jilles regarding r265472 to dd(1). 2014-05-08 19:10:04 +00:00
position.c bin/dd: Fix incorrect casting of arguments 2014-10-27 11:38:17 +00:00
ref.ascii
ref.ebcdic
ref.ibm
ref.lcase
ref.oldascii
ref.oldebcdic
ref.oldibm
ref.pareven
ref.parnone
ref.parodd
ref.parset
ref.swab
ref.ucase