Re: [xml] condition in xpath code

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.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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