Re: [xml] unregister XPath namespace prefix crash (python bindings)



On Tue, Oct 28, 2003 at 10:43:43PM -0500, Anthony Carrico wrote:
That crash happens in "context.xpathFreeContext()".

I looked at the libxml2 source code a little bit. It seems like maybe
the code xmlHashUpdateEntry doesn't delete the hashtable entry if the
ns_uri is NULL, so I wonder if something like the following patch
would be appropriate. I haven't tested this patch yet; I wanted to
submit the problem with the wisdom of this list to see if I'm going in
the right direction.

  Yeah, that sounds right. I changed that in CVS. I also tried to 
add more checks in the hash module to avoid the problem in a more general
way.

  thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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