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

CurlURLInputStream constructor memory leak

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4, 4.0.0
    • None
    • None

    Description

      CurlURLInputStream constructor calls the readMore() method, which can
      throw exceptions. In that situation, the destructor is not called, which
      results in resource/memory leaks. To fix that, catch the exceptions,
      manually do the cleanup and rethrow the exceptions.

      Found by ossfuzz (locally)

      Attachments

        Activity

          People

            scantor Scott Cantor
            rleigh Roger Leigh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: