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

LocalFileFormatTarget leaks file handle

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.2, 3.2.0
    • Component/s: Miscellaneous
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: