🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.misc
Article #150

Slight bug in dvi2tty

#150
From: John P. Rouillard
Date: Fri, 30 Dec 1988 15:07
23 lines
1268 bytes
Program: dvi2tty (posted comp.sources.misc)

Description: When running dvi2tty segmentation violation occurs if
	     environment variable DVI2TTY is not defined.

Cause: In dvi2tty.c a test for a null pointer being returned from
       getenv("DVI2TTY") is missing. The offending line of code is at
       line 266 in dvi2tty.c.  

Fix: The fix is to put a test for envp being NULL before it is
     dereferenced.

Comment: This appears to be the only mistake in an otherwise useful
	 tool.

==========================================================================
  Person                U.S. Snail Addr        		E-Mail Addr
John Rouillard	       Physics Department   	     harvard!umb!rouilj
U-Mass Boston	       U-Mass Boston	    	     husc6!umb!rouilj
Physics Major	       Harbor Campus	    	     rouilj@umb.umb.edu
		       Boston, MA 02125
 		
Technical Details
Message-ID: <727@umb.umb.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ukma!husc6!contact!umb!rouilj

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!ukma!husc6!contact!umb!rouilj
From: rouilj@umb.umb.edu (John P. Rouillard)
Newsgroups: comp.bugs.misc
Subject: Slight bug in dvi2tty
Message-ID: <727@umb.umb.edu>
Date: 30 Dec 88 15:07:20 GMT
Reply-To: rouilj@umb.UUCP (John P. Rouillard)
Organization: Dept of Math and CS, UMass Boston.
Lines: 23