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

LocalFileFormatTarget leaks file handle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.1.2, 3.2.0
    • Miscellaneous
    • None

    Description

      The call to XMLPlatformUtils::writeBufferToFile in the LocalFileFormatTarget destructor might throw an exception. A typical use case is running out of disk space.

      In this case the file handle will not be closed

      Attachments

        1. LocalFileFormatTarget.cpp.patch
          0.8 kB
          Vemund Handeland

        Activity

          People

            amassari Alberto Massari
            hvemha Vemund Handeland
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: