Re: [xml] functions which never return
- From: Olivier Sirven <osirven elma fr>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] functions which never return
- Date: Fri, 26 Nov 2004 12:50:35 +0100
Le Vendredi 26 Novembre 2004 12:21, Daniel Veillard a écrit :
How did that string made it to the document ? If it is the result of
parsing then this must be debugged and fixed. If this is the result of
using the API to add strings to an existing document you must ensure that
they are correct UTF-8 string before passing them to the API as xmlChar *.
It is the result of using the API to add strings to an existing document. The
bug occurs when there are some invalid UTF-8 strings in the data. I cannot
correct the strings as I am the owner of the incorrect rss feed so Iwrote a
function to fix invalid strings then it worked fine.
Does one can imagine in a futur release of libxml the functions to detect
and to prevent infinite recursion ?
In the first case, probably no to avoid abuse of the XML specification.
In the second case yes, but you will have to provide reproduceable test
cases see http://xmlsoft.org/bugs.html for guidelines.
I will fill a bug report with some informations to repoduct the bug of invalid
strings.
--
Olivier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]