You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "David Bertoni (JIRA)" <xe...@xml.apache.org> on 2005/05/03 22:53:07 UTC

[jira] Closed: (XERCESC-1358) RefHashTableOf::rehash() is not exception-safe

     [ http://issues.apache.org/jira/browse/XERCESC-1358?page=all ]
     
David Bertoni closed XERCESC-1358:
----------------------------------


> RefHashTableOf::rehash() is not exception-safe
> ----------------------------------------------
>
>          Key: XERCESC-1358
>          URL: http://issues.apache.org/jira/browse/XERCESC-1358
>      Project: Xerces-C++
>         Type: Bug
>   Components: Utilities
>     Versions: 2.6.0
>  Environment: All
>     Reporter: David Bertoni
>     Assignee: Gareth Reakes
>  Attachments: patch.txt
>
> 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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org