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