Re: [xml] condition in xpath code
- From: Daniel Veillard <veillard redhat com>
- To: Nagesh <nageshs huawei com>
- Cc: xml gnome org, ranjit huawei com
- Subject: Re: [xml] condition in xpath code
- Date: Mon, 3 Mar 2008 11:34:53 -0500
On Mon, Mar 03, 2008 at 07:21:37PM +0530, Nagesh wrote:
Hi All,
The xpath function xmlXPathNodeCollectAndTest( ) in
libxml2-2.6.31 has condition on the line number 12221 which checks for
the type to be of type XML_NAMESPACE_DECL, which cannot happen since
the type is of enum type xmlXPathTypeVal which doesn't has the range
to have this value. Is this check deliberate or is it a bug.
Hard to tell, i don't see the op operand 3 initialized to XML_NAMESPACE_DECL
anywhere, but that part of the code is fairly complex and subtle. Try to remove
that part and rerun all regression tests including XPath and libxslt ones,
it may quive you a quick answer ... or not.
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]