Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 3.0.0
    • Labels:
      None
    • Environment:
      Operating System: Windows NT/2K
      Platform: PC
    • Bugzilla Id:
      24703

      Description

      Parser crashes in ContentSpecNode.hpp: ContentSpecNode::~ContentSpecNode().

      Steps to reproduce:
      validate a xml file against a schema with an element having a maxOccurs >=
      200000.

      Assumed cause:
      Stack overfow

      Makeshift resolution:
      Set the repeat count to unbounded(-1), when maxOccurs > 500:

      inline void ContentSpecNode::setMaxOccurs(int max)
      {
      if(max > 500)
      max = -1;
      fMaxOccurs = max;
      }

        Attachments

          Activity

            People

            • Assignee:
              amassari Alberto Massari
              Reporter:
              rast@gefeg.com Frank Rast
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: