On Sun, Jun 08, 2008 at 11:36:57AM -0400, Jorge Arellano Cid wrote:
On Sun, Jun 08, 2008 at 08:55:52AM +0200, Johannes Hofmann wrote:
On Sat, Jun 07, 2008 at 06:49:22PM -0400, Jorge Arellano Cid wrote:
On Sat, Jun 07, 2008 at 02:24:09PM +0000, corvid wrote:
Johannes wrote:
now I've got some more info on that problem. The buffer on which Html_write_raw is operating (0x285c8000 in this case) is free'd by a_Cache_set_content_type(). I don't understand the details though. Do you have an idea?
Ah! Does this help?
--- dillo2/src/html.cc 2008-06-05 14:06:50.000000000 +0000 +++ dillo2-cur/src/html.cc 2008-06-07 14:16:37.000000000 +0000 @@ -5449,6 +5449,9 @@ static void Html_process_tag(DilloHtml * /* Call the open function for this tag */ Tags[ni].open (html, tag, tagsize);
+ if (html->stop_parser) + return; + /* Now parse attributes that can appear on any tag */ if (tagsize >= 8 && /* length of "<t id=i>" */ (attrbuf = Html_get_attr2(html, tag, tagsize, "id",
I tried to simplify the code by avoiding a return point in the middle of the function. It took long to figure a way!
Please test the patch in CVS.
Are you sure it's in CVS? Current CVS still shows the bug.
Yes.
If you have a switch statement in Html_process_tag(), that's it.
Now I've got it. Works fine. For some reason I got this change only now from CVS. Thanks, Johannes