RE: [xml] RelaxNG validation twice will crash



Hi, Daniel,

I have found that the problem I mentioned in previous email is caused by
my own code. The reason is because my byte array which stores RelaxNG
error message is over flow. The over flow is triggered when RelaxNG
validate the following dataType SECOND time, it reports error. However,
validation the FIRST time passed. So it looks like RelaxNG is not
completely cleaned up after first time. Is there already such bug
exists? 
----------------------------------------------
<element name="action">
                <data type="string">
                  <param name="maxLength">255</param>
                  <param name="minLength">1</param>
                </data>
 </element>  
------------------------------------------- 
Thank you very much.

Debin
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com] 
Sent: Tuesday, February 10, 2004 11:52 AM
To: Debin Chen
Cc: xml gnome org
Subject: Re: [xml] RelaxNG validation twice will crash


On Tue, Feb 10, 2004 at 11:16:36AM -0800, Debin Chen wrote:
Hello,
 
First I will say Libxml is a wonderful software. Now my problem. In my

project I called RelaxNG validation code more than once, and it always

crashed at second time. Then I found out that by simply running a 
function which has the exact testRelax.c code twice will crash too. I 
am using version libxml2 2.6.4.

I think it's related to the use of _private by the validation code. See
http://bugzilla.gnome.org/show_bug.cgi?id=133787
I really need to fix this,

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]