You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/02/28 00:41:12 UTC

[jira] Created: (AXIS2C-77) add header block in soap header uses a local variable as a hash key

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

         Key: AXIS2C-77
         URL: http://issues.apache.org/jira/browse/AXIS2C-77
     Project: Axis2-C
        Type: Bug
  Components: xml/soap  
    Versions: Current (Nightly)    
    Reporter: Samisa Abeysinghe
 Assigned to: nandika jayawardana 


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.

-- 
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


[jira] Closed: (AXIS2C-77) add header block in soap header uses a local variable as a hash key

Posted by "nandika jayawardana (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-77?page=all ]
     
nandika jayawardana closed AXIS2C-77:
-------------------------------------

    Resolution: Fixed

(Visible to axiscpp-developers)


> add header block in soap header uses a local variable as a hash key
> -------------------------------------------------------------------
>
>          Key: AXIS2C-77
>          URL: http://issues.apache.org/jira/browse/AXIS2C-77
>      Project: Axis2-C
>         Type: Bug
>   Components: xml/soap
>     Versions: Current (Nightly)
>     Reporter: Samisa Abeysinghe
>     Assignee: nandika jayawardana

>
> 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.

-- 
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