Path: 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 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