Re: [xml] htmlReadMemory broken if LIBXML_LEGACY_ENABLED not set



Daniel Veillard wrote:
On Wed, Nov 16, 2005 at 03:30:33PM +0000, Gary Coady wrote:
while tracking down an apparent regression in HTML parsing, I found that
the checkin for bug 306901 breaks htmlReadMemory, when used in a
multithreaded app. The change was to call
inithtmlDefaultSAXHandler(&gs->htmlDefaultSAXHandler);
only if both LIBXML_HTML_ENABLED AND LIBXML_LEGACY_ENABLED were set.

  I'm unclear about this, please bugzilla so it's not dropped, just make a
reference to the old bug. Also if you are multithreaded, then you must call
the library initialization call at startup, then I think the default sax
handler should be initialized.

Daniel,
thanks for the response. Yes, xmlInitParser is called at startup, before
any other threads are created. I've filed
http://bugzilla.gnome.org/show_bug.cgi?id=321632 for the issue.

Gary.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]