Ticket #28 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Function advanceTo in teqXML loops infinitely when parsing COLLADA schema xsd

Reported by: hduregger Assigned to:
Priority: minor Milestone:
Component: Other Version: SVN HEAD
Keywords: collada xsd loop infinitely terminate teqxml advanceto Cc:

Description

I am trying to parse the COLLADA XML schema (xsd) with SimpleXML which uses Mango for parsing the schema.

When parsing the schema the function

void advanceTo(T[] str) see http://www.dsource.org/projects/mango/browser/trunk/mango/xml/sax/parser/teqXML.d#L948

loops infinitely at comments in the schema.

These comments include lines with patterns like "-=-=-=-=-".

When replacing the current expression in "do { ... } while ( EXPRESSION )" partially with the one that was commented below it (by adding "++" to "pos"), the program terminates with an error that the end-of-file has been reached without closing the XML comment.

The relevant xsd with the comments can be found here:

http://www.khronos.org/files/collada_schema_1_4

Change History

10/29/07 17:41:33 changed by teqdruid

  • status changed from new to closed.
  • resolution set to fixed.

Try r1043. This file no longer loops infinitely on the new revision. I haven't seen the end-of-file error. If you still get it, please re-open the ticket and submit a short test program to demonstrate it.

Thanks for the through report.