[xslt] Re: Fix for 105418 [xsltDocumentFunctionLoadDocument seg faults iffile doesn't exist]



I hope you don't mind a clarifying question about this:

Jean Anderson wrote:
> Way back on January 20 I pinged this list with this problem.Today I 
> finally got around to logging a bug with a reproduction on 
> libxslt-1.0.25 (http://bugzilla.gnome.org/show_bug.cgi?id=105418).
> ...

Daniel's fix:

+ Changing to
+     } else
+         doc = xsltdoc->doc;
+ fixes the problem...

The result of this fix is an empty result:

    [jta@gertie documents]$ xsltproc test.xsl test-bad.xml
    warning: failed to load external entity "foofile.xml"
    warning: failed to load external entity "foo_file.xml"



    [jta@gertie documents]$

I just wanted to verify that this is "expected" behavior if the file 
being loaded does not exist. The --verbose option would not help the 
end-user figure out the problem. If it is correct, then I'll add the 
handling to my code that xsltproc does that results in those warning 
messages.

and thanks for the fast fix!

  -jean




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