Subject: bin/2101: dd's seek offsets cannot be larger than INT_MAX
To: None <gnats-bugs@NetBSD.ORG>
From: J.T. Conklin <jtc@slave.cygnus.com>
List: netbsd-bugs
Date: 02/19/1996 16:42:32
>Number:         2101
>Category:       bin
>Synopsis:       dd's seek offsets cannot be larger than INT_MAX
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   jtc
>Arrival-Date:   Tue Feb 20 03:05:01 1996
>Last-Modified:
>Originator:     J.T. Conklin
>Organization:
The NetBSD Foundation.
>Release:        960218-current
>Environment:
	
System: NetBSD slave.cygnus.com 1.1_ALPHA NetBSD 1.1_ALPHA (SLAVE) #1: Fri Nov 17 15:39:38 PST 1995 jtc@slave.cygnus.com:/usr/src/sys/arch/sun3/compile/SLAVE sun3

>Description:
dd's seek offset cannot be larger than INT_MAX.  This does not make
sense with 64 bit file offsets/sizes.

This bug report is taken from a message to current-users from Jon
Buller <jonb@metronet.com>.

>How-To-Repeat:
$ dd if=/dev/mem bs=32768 skip=65536 count=1
dd: seek offsets cannot be larger than 2147483647.

>Fix:
Increase offset from u_long to off_t?
>Audit-Trail:
>Unformatted: