
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. -- Cheers Jorge.-