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

Empty systemID crashes Xerxes Parser

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0
    • None
    • Windows 32 bit (WinXP Prof), using VC 6.0

    Description

      Using the following declaration crashes Xerces:

      <!ENTITY % ISOlat1 PUBLIC "ISO 8879-1986//ENTITIES Added Latin 1//EN" "">

        • Note the empty systemID declaration.**

      Background:
      Added a OASIS Catalog Resolving Mechanism to our integration of Xerces Parser, callback handler EntityHandler::resolveEntity is supposed to resolve the public ID.
      Unfortunately, line

      internal/ReaderMgr.cpp:470

      handles the string without checking if the pointer const XMLCh* const sysId is NULL. And maybe the sysID pointer shouldn't have been NULL, but the empty string.

      Best Regards,
      Arthur

      Attachments

        Activity

          People

            Unassigned Unassigned
            arot Arthur Rother
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: