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

add header block in soap header uses a local variable as a hash key

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • xml/soap
    • None

    Description

      in axis2_soap_header_add_header_block we have:
      axis2_char_t key[10];
      sprintf(key,"%d", header_impl->hbnumber++);
      axis2_hash_set(header_impl->header_blocks,
      key , AXIS2_HASH_KEY_STRING, header_block);

      The moment axis2_soap_header_add_header_block returns, key will be no more and thus the hash table contains garbage as key.

      Attachments

        Activity

          People

            nandika Korale Gamaralalage Nandika Chandrasiri Jayawardana
            samisa Don Samisa Abeysinghe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: