[Prev][Next][Index][Thread]

Problem with HTML.c




I am seeing occasional ARRAY BOUNDS violations when running version 1.2 of
libwww.a

Purify complains A LOT about me->sp (the pointer into the stack element array
in an _HTStructured).

I am seeing:
	Gobs of ARRAY BOUNDS READ violations in instances of me->sp
		from HTML.c

	Also, you get ARRAY BOUNDS WRITE violations in these 2 lines:

		     HTML_start_element [HTML.c:634]
	                --(me->sp);
	     =>	        me->sp[0].style = me->new_style;        /* Stack new style */
	     =>         me->sp[0].tag_number = element_number;

My belief:

	1. Since this only happens rarely, I could be retrieving a
page from the web that exceeds the depth of the stack.

 OR

	2. Somehow, I could be getting a page that causes HTML_end_element
to be called too often thus underflowing the stack.


	I am going to test this with the line mode browser to see if I 
can repeat the error. I WISH I HAD THE PAGE that caused this to happen!!
I'd appreciate it if someone could comment on this so that I don't waste
time chasing bugs in libwww.a when it is really my own fault.

		-Rob


-- 
"For every job in life, there is someone who makes it more than a job.
They make it a passion. And their creations seem to be imbued with a soul."