tidy bug: bursting slides with no introductory matter causes segmentation fault

I'm using tidy30apr00

If you don't have any content before the first <h2>, then CountSlides returns too large a value and you get a segmentation fault later on in PPrintSlide (when slidecontent is null).

The simplest test case is

  echo '<h2>' | tidy -slides

whereas

  echo 'x<h2>' | tidy -slides

works OK.

Michael.

p.s. Thanks for this fine program.

Received on Friday, 7 July 2000 14:56:59 UTC