Re: [xslt] element-available function crash



On Wed, May 22, 2002 at 09:50:48AM +0100, Richard Jinks wrote:
> Testing libxslt-1.0.17, Windows 2000, VC++6 (SP5)
> 
> I get a crash from the following stylesheet using the element-available
> function.
[..]
> The crash occurs in libxslt\functions.c:xsltElementAvailableFunction()
> where xmlSearchNS() returns NULL and the following line assumes a valid
> xmlNsPtr and tries to access the structure.
> 
> I've attached a diff file that adds a test for NULL being returned from
> xmlSearchNS().
> The stylesheet then works returns the result I'd expect in this case, but
> I'm not sure if there are any other consequences that I haven't noticed with
> the rest of the function.

  Right, the patch makes sense, applied and commited,

   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]