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

AbstractDOMParser::parse potentially throws undocumented OutOfMemoryException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.2.2, 3.2.3
    • None
    • DOM
    • None
    • Hide
      there are several versions for this function, here one of them:

      parse() [2/3]
      void AbstractDOMParser::parse ( const InputSource & source )
      Parse via an input source object.

      This method invokes the parsing process on the XML file specified by the InputSource parameter. This API is borrowed from the SAX Parser interface.

      Parameters
      source A const reference to the InputSource object which points to the XML file to be parsed.
      Exceptions
      SAXException Any SAX exception, possibly wrapping another exception.
      XMLException An exception from the parser or client handler code.
      DOMException A DOM exception as per DOM spec.
      See also
      InputSource::InputSource
      Show
      there are several versions for this function, here one of them: parse() [2/3] void AbstractDOMParser::parse ( const InputSource & source ) Parse via an input source object. This method invokes the parsing process on the XML file specified by the InputSource parameter. This API is borrowed from the SAX Parser interface. Parameters source A const reference to the InputSource object which points to the XML file to be parsed. Exceptions SAXException Any SAX exception, possibly wrapping another exception. XMLException An exception from the parser or client handler code. DOMException A DOM exception as per DOM spec. See also InputSource::InputSource

    Description

      the code shows that 

      try
      {
          // ...
      }
      catch(const OutOfMemoryException&)
      {
          resetInProgress.release();
          throw;
      }
      

      and the OutOfMemoryException could be thrown. However this is not shown in the documentation

      Attachments

        Activity

          People

            Unassigned Unassigned
            tamir.yehuda Tamir Yehuda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: