Re: [xml] unregister XPath namespace prefix crash (python bindings)
- From: Daniel Veillard <veillard redhat com>
- To: Anthony Carrico <acarrico memebeam org>
- Cc: libxml <xml gnome org>
- Subject: Re: [xml] unregister XPath namespace prefix crash (python bindings)
- Date: Wed, 29 Oct 2003 06:15:15 -0500
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]