[ expat-Bugs-422239 ] Bug in XmlUpdatePosition()

noreply@sourceforge.net noreply@sourceforge.net
Thu Jun 13 07:48:01 2002


Bugs item #422239, was opened at 2001-05-08 05:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=422239&group_id=10127

Category: None
Group: None
Status: Open
Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Bug in XmlUpdatePosition()

Initial Comment:
If I call XML_GetCurrentLineNumber() at the end of a document, it appears to double count the 
lines.  

Calling XML_GetCurrentLineNumber() on every end element event seems to solve the problem.  I 
have no explanation for this, other than supposing there may be a bug in the call to 
XmlUpdatePosition(), from XML_Parse().

----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-13 10:47

Message:
Logged In: YES 
user_id=3066

Karl:  Not necessarily.  The submitter *may* have provided
an email address or have requested "monitoring" of the
issue, which are not visible in the interface.  (I consider
this a bug in the SF user interface.)

Bringing it up on expat-discuss is not a bad idea.

----------------------------------------------------------------------

Comment By: Karl Waclawek (kwaclaw)
Date: 2002-06-13 10:38

Message:
Logged In: YES 
user_id=290026

Since *nobody* submitted this, *nobody* will read this.
Maybe post to the discussion list?

Karl

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-12 23:06

Message:
Logged In: YES 
user_id=3066

Do you still see this in Expat 1.95.3?

Does this only occur on long documents?  Any other special
considerations?  I am not able to reproduce this using a
short input document:

<e>
   <e/>
</e>

If anyone can provide a failing sample document, please
attach it to this bug report, otherwise I'll close it after
a short waiting period (say, 2 weeks).

I've attached a patch to tests/runtests.c that shows the
test I wrote.

----------------------------------------------------------------------

Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2001-07-25 17:00

Message:
Logged In: YES 
user_id=3066

Removing the assignment to Clark, since he does not seem to be available, and this doesn't appear to be an XML::Parser specific bug.

I need to generate a test case for this.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=110127&aid=422239&group_id=10127