Bug 23549

Summary: ldd invokes 'lseek' incorrectly
Product: Base System Reporter: dc <dc>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description dc 2000-12-14 18:10:02 UTC
	ldd invokes 'lseek' with an offset in the 3rd arg when
	trying to move to the start of the program header
	array in an elf file.

Fix: ===================================================================
RCS file: /home/cvs/freebsd/src/usr.bin/ldd/ldd.c,v
retrieving revision 1.18
How-To-Repeat: 
	inspect the code, or:
	"truss ldd yourprog"   and watch for the EINVAL from lseek.
Comment 1 Andrey A. Chernov freebsd_committer freebsd_triage 2000-12-15 13:40:47 UTC
State Changed
From-To: open->analyzed

Fixed in -current ldd.c v1.21
Comment 2 Andrey A. Chernov freebsd_committer freebsd_triage 2001-01-10 08:11:16 UTC
State Changed
From-To: analyzed->closed

Commited into -stable