Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-880

Function axis2_svc_client_add_header[Alastair FETTES]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • core/clientapi
    • None
    • Ubuntu 7.04

    Description

      <snippet>
      AXIS2_EXTERN
      axis2_status_t axis2_svc_client_add_header(
      axis2_svc_client_t* svc_client,
      const axutil_env_t* env,
      axiom_node_t* header)
      </snippet>

      The parameter svc_client does not take responsibility for the memory allocated for header, although it does maintain an internal pointer to the data. This can result in dangling pointer situations if the caller deletes the memory passed using header before svc_client has a chance to remove the header.

      Solution: Document memory ownership for parameters and return value. Investigate the use of pointers in the internal structure to avoid dangling pointer situations.

      Attachments

        1. diff.txt
          1 kB
          Senaka Fernando

        Activity

          People

            xydinesh Dinesh Weerapurage
            lahiru Lahiru Gunathilake
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: