From owner-freebsd-bugs Wed Jan 28 03:20:03 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA12136 for freebsd-bugs-outgoing; Wed, 28 Jan 1998 03:20:03 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA12130; Wed, 28 Jan 1998 03:20:02 -0800 (PST) (envelope-from gnats) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA11874; Wed, 28 Jan 1998 03:16:42 -0800 (PST) (envelope-from nobody) Message-Id: <199801281116.DAA11874@hub.freebsd.org> Date: Wed, 28 Jan 1998 03:16:42 -0800 (PST) From: paulo@fiscodata-pr.netpar.com.br To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: bin/5591: Trouble with LD_PRELOAD environment variable and man pages Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 5591 >Category: bin >Synopsis: Trouble with LD_PRELOAD environment variable and man pages >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jan 28 03:20:01 PST 1998 >Last-Modified: >Originator: Paulo Cesar Pereira de Andrade >Organization: Particular >Release: -CURRENT and -STABLE >Environment: FreeBSD fiscodata-pr.netpar.com.br 2.2.5-STABLE #0: Wed Dec 31 09:08:35 GMT 1997 root@fiscodata-pr.netpar.com.br:/usr/src/sys/compile/OTIMIZADO i386 >Description: While building a libXaw replacement, I found a problem with man, that I think can be exploitable. When setting the LD_PRELOAD environment variable to "./libXaw.so.6.0:/other/shared/libs" and typping: % man XGetGeometry, the XGetGeometry man page is truncated to zero lines. This can be done, I think, in any man page if it is not in the /man/cat?/ directory, by any user. >How-To-Repeat: % setenv LD_PRELOAD '/usr/X11R6/lib/libXaw.so.6.?'; man XGetGeometry Formatting page, please wait...ld.so failed: Undefined symbol "_XtStrings" in groff:/usr/X11R6/lib/libXaw.so.6.1 % unsetenv LD_PRELOAD; man XGetGeometry % >Fix: >Audit-Trail: >Unformatted: