Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 26503 invoked from network); 2 Mar 2006 09:10:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Mar 2006 09:10:19 -0000 Received: (qmail 12935 invoked by uid 500); 2 Mar 2006 09:11:05 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 12916 invoked by uid 500); 2 Mar 2006 09:11:05 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 12905 invoked by uid 99); 2 Mar 2006 09:11:05 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 01:11:03 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DFE54E1 for ; Thu, 2 Mar 2006 10:10:41 +0100 (CET) Message-ID: <2036995105.1141290641915.JavaMail.jira@ajax.apache.org> Date: Thu, 2 Mar 2006 10:10:41 +0100 (CET) From: "nandika jayawardana (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXIS2C-77) add header block in soap header uses a local variable as a hash key In-Reply-To: <1631984673.1141083672561.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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