/[base]
ViewVC logotype

Revision 273734


Jump to revision: Previous Next
Author: pi
Date: Mon Oct 27 11:38:17 2014 UTC (9 years, 8 months ago)
Changed paths: 5
Log Message:
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@


Changed paths

Path Details
Directoryhead/bin/dd/args.c modified , text changed
Directoryhead/bin/dd/conv.c modified , text changed
Directoryhead/bin/dd/dd.c modified , text changed
Directoryhead/bin/dd/dd.h modified , text changed
Directoryhead/bin/dd/position.c modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.27