axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kamlesh (JIRA)" <>
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
             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)
            m_pcUsername = NULL;
        if (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:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message