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
<element name="action">
                <data type="string">
                  <param name="maxLength">255</param>
                  <param name="minLength">1</param>
Thank you very much.

-----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:
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
I really need to fix this,


Daniel Veillard      | Red Hat Network
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]