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/02/24 22:23:50 UTC

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

     [ http://issues.apache.org/jira/browse/XERCESC-1358?page=history ]

David Bertoni updated XERCESC-1358:
-----------------------------------

    Attachment: patch.txt

Patch that fixes problems.

> 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
>  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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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