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

Unproper condition ?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Incomplete
    • None
    • None
    • None
    • Operating System: All
      Platform: All
    • 14996

    Description

      File: \xercesc\internal\XMLScanner.cpp
      Line: 2461

      We cannot have an internal subset whn reusing a grammar (fUseCachedGrammar)
      fToCacheGrammar flag instructs the parser to cache the grammar (for later
      reusing). So the following condition is incorrect:

      // We can't have any internal subset if we are reusing the validator
      if (fUseCachedGrammar || fToCacheGrammar)
      ThrowXML(RuntimeException, XMLExcepts::Val_CantHaveIntSS);

      Proposed patch:
      // We can't have any internal subset if we are reusing the validator
      if (fUseCachedGrammar)
      ThrowXML(RuntimeException, XMLExcepts::Val_CantHaveIntSS);

      Attachments

        Activity

          People

            Unassigned Unassigned
            peterv@ti.com.od.ua Peter A. Volchek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: