axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kamlesh kumar <kamaa...@yahoo.com>
Subject SOAPTransport segfaults
Date Thu, 17 Aug 2006 20:38:53 GMT
SOAPTransport.h defines two member variables
m_pcUsername and m_pcPassword.

However, they are not set to NULL in the constructor
and so causes the following piece of code to segfault
since m_pcUsername and m_pcPassword could be pointing
to random memory address.
 
virtual ~SOAPTransport()
    {
        if (m_pcUsername)
        {
            delete[]m_pcUsername;
            m_pcUsername = NULL;
        }
        if (m_pcPassword)
        {
            delete[]m_pcPassword;
            m_pcPassword = NULL;
        }
    };



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


Mime
View raw message