axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kamlesh (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Created: (AXISCPP-999) Segmentation fault in SOAPTransport.h
Date Wed, 13 Sep 2006 18:56:24 GMT
Segmentation fault in SOAPTransport.h
-------------------------------------

                 Key: AXISCPP-999
                 URL: http://issues.apache.org/jira/browse/AXISCPP-999
             Project: Axis-C++
          Issue Type: Bug
          Components: Transport (Server)
    Affects Versions:  1.6 Beta
         Environment: Linux
            Reporter: kamlesh


SOAPTransport.h defines two member variables
m_pcUsername and m_pcPassword.

Since, they are not initialized to NULL in the constructor
it causes the following piece of code to segfault
as m_pcUsername and m_pcPassword could be pointing
to any memory address.
 
virtual ~SOAPTransport()
    {
        if (m_pcUsername)
        {
            delete[]m_pcUsername;
            m_pcUsername = NULL;
        }
        if (m_pcPassword)
        {
            delete[]m_pcPassword;
            m_pcPassword = NULL;
        }
    };


The fix is simple we need to initialize m_pcUsername  and m_pcPassword  to NULL in the constructor.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message