Subject: bin/22552: 'strings -t d' prints negative offset for over 2GB files
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yu@installer.org>
List: netbsd-bugs
Date: 08/20/2003 17:55:18
>Number:         22552
>Category:       bin
>Synopsis:       'strings -t d' prints negative offset for over 2GB files
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 20 08:55:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     IMAMURA Tomoaki
>Release:        NetBSD 1.6W
>Organization:
IMAMURA Tomoaki
>Environment:
	
	
System: NetBSD stardust.readme.jp 1.6W NetBSD 1.6W (GENERIC) #3: Sat Aug 2 16:18:39 JST 2003 root@stardust.readme.jp:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
	While using 'strings -t d' ("-t d" means print offset in decimal)
	over large file over 2GBytes, it prints negative offset when
	offset >2GB.
>How-To-Repeat:
	strings -t -d some-large-file-over-2gb (such as /dev/wd0c)
>Fix:
	In /usr/src/gnu/dist/toolchain/binutils/strings.c, line 553,
		printf ("%7Ld ", (unsigned long long) start);
	format "%7Ld " should be "%7lld ". Same for other formats. 
>Release-Note:
>Audit-Trail:
>Unformatted: