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

RefHashTableOf::rehash() is not exception-safe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.6.0
    • None
    • Utilities
    • None
    • All

    Description

      RefHashTableOf::rehash() modifies its data member in the course of rehashing. If an exception is thrown during this member function, the object is in an inconsistent state, which will cause problems when it is destroyed. Also, there is a chance that memory will leak.

      I will provide a patch which does not modify the data members until the rehashing has complete. It also fixes the potential memory leak.

      Attachments

        1. patch.txt
          3 kB
          David N Bertoni

        Activity

          People

            gareth@parthenoncomputing.com Gareth Reakes
            dbertoni David N Bertoni
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: