Lynx core dump on GNN material

Lou Montulli (montulli@stat1.cc.ukans.edu)
Thu, 7 Oct 93 17:45:32 CDT


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        *
  **************************************************************************