Lynx core dump on GNN material

montulli@stat1.cc.ukans.edu (Lou Montulli)
X-Delivered: at request of secret on dxcern.cern.ch
From: montulli@stat1.cc.ukans.edu (Lou Montulli)
Message-id: <9310072245.AA35250@stat1.cc.ukans.edu>
Subject: Lynx core dump on GNN material
To: lynx-dev@ukanaix.cc.ukans.edu
Date: Thu, 7 Oct 93 17:45:32 CDT
Cc: cello-l@fatty.law.cornell.edu, www-talk@nxoc01.cern.ch, dale@ora.com
X-Mailer: ELM [version 2.3 PL2]
After receiving 568 different bug reports about Lynx crashing 
while reading the GNN stuff from O'reilly (http://nearnet.gnn.com/GNN-ORA.html)
I figured I had better figure out what was wrong.

It turns out that I didn't explicitly set a pointer to NULL during
declaration.  (silly me)  My compiler is smart (or is that stupid) 
enough to set it to NULL anyways so it didn't turn up during testing.

This problem only seems to manifest itself on SUN and ULTRIX systems.

Anyways, here's the solution for those of you who want to fix it in
your current sources.  (It will of course be fixed in 2.0.12 when it
is available)

on line 662 of lynx2-0-11/src/WWW/HTML.c change:
	    char *alt_string;
to:
	    char *alt_string=NULL;

:lou
-- 
  **************************************************************************
  *           T H E   U N I V E R S I T Y   O F   K A N S A S              *
  *         Lou  MONTULLI @ Ukanaix.cc.ukans.edu                           *
  *                         Kuhub.cc.ukans.edu      ACS Computing Services *
  *     913/864-0436        Ukanvax.bitnet             Lawrence, KS 66044  *
  *             UNIX! Cool! I know that!  Jurassic Park - The Movie        *
  **************************************************************************