Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1333

Inspection of code showed probable error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • not relevant

    Description

      in file xerces-c-src_2_6_0/src/xercesc/validators/schema/ComplexTypeInfo.cpp

      in function ComplexTypeInfo::checkUniqueParticleAttribution(...)

      lines 527 to 533:

      read as:

      if (fContentSpec && !fContentModel)
      {
      fContentModel = makeContentModel(true);
      if (fContentModel)

      { fContentModel->checkUniqueParticleAttribution(pGrammar, pGrammarResolver, pStringPool, pValidator, fContentSpecOrgURI, fTypeLocalName); }

      }

      but should probably read as:

      if (fContentSpec && !fContentModel)
      fContentModel = makeContentModel(true);
      if (fContentModel)

      { fContentModel->checkUniqueParticleAttribution(pGrammar, pGrammarResolver, pStringPool, pValidator, fContentSpecOrgURI, fTypeLocalName); }

      Attachments

        Activity

          People

            Unassigned Unassigned
            michaelrsweet Michael Sweet
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: