[ 
http://issues.apache.org/jira/browse/XALANC-599?page=comments#action_12365139 ] 

David Bertoni commented on XALANC-599:
--------------------------------------

That's not possible, since the pointer is passed by value.  I think this is 
really the responsibility of the caller.  Consider the analogous situation:

delete m_transcoder;

Isn't it the responsibility of the code that calls delete to set the pointer to 
null if necessary?

> Possible dangling pointer in XalanOutputStream when setting explicit encoding.
> ------------------------------------------------------------------------------
>
>          Key: XALANC-599
>          URL: http://issues.apache.org/jira/browse/XALANC-599
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: David Bertoni
>     Assignee: David Bertoni
>     Priority: Critical
>  Attachments: patch.diff
>
> There is a bug where XalanOutputStream will have a dangling pointer in its 
> m_encoding data member, which can lead to a double-delete of the pointer.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to