Date: Wed, 28 Jan 1998 03:16:42 -0800 (PST) From: paulo@fiscodata-pr.netpar.com.br To: freebsd-gnats-submit@FreeBSD.ORG Subject: bin/5591: Trouble with LD_PRELOAD environment variable and man pages Message-ID: <199801281116.DAA11874@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <base>/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 <Other error messages> % unsetenv LD_PRELOAD; man XGetGeometry % >Fix: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199801281116.DAA11874>