Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 65824 invoked from network); 15 Oct 2004 09:53:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Oct 2004 09:53:56 -0000 Received: (qmail 77306 invoked by uid 500); 15 Oct 2004 09:53:56 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 77248 invoked by uid 500); 15 Oct 2004 09:53:55 -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 77226 invoked by uid 99); 15 Oct 2004 09:53:54 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 15 Oct 2004 02:53:51 -0700 Received: (qmail 1159 invoked from network); 15 Oct 2004 09:55:51 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 15 Oct 2004 09:55:51 -0000 Message-ID: <33226189.1097834151295.JavaMail.apache@nagoya> Date: Fri, 15 Oct 2004 02:55:51 -0700 (PDT) From: axis-c-dev@ws.apache.org To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXISCPP-37) Apache Module: mod_axis2 causes crash Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Message: The following issue has been closed. --------------------------------------------------------------------- View the issue: http://issues.apache.org/jira/browse/AXISCPP-37 Here is an overview of the issue: --------------------------------------------------------------------- Key: AXISCPP-37 Summary: Apache Module: mod_axis2 causes crash Type: Bug Status: Closed Resolution: FIXED Project: Axis-C++ Components: Transport (Server) Fix Fors: current (nightly) Versions: 1.0 Final Assignee: Reporter: Roland Kosovsky Created: Thu, 15 Jan 2004 4:08 PM Updated: Fri, 15 Oct 2004 2:54 AM Environment: Operating System: Other Platform: Other Description: "sstr->so.http.op_headercount" is not set to 0 in file "mod_axis2.c". During my tests this caused a crash (in "mod_axis.c" it is zeroed). mod_axis2.c, Ln 138: static int mod_axis_method_handler (request_rec *req_rec) ... sstr = malloc(sizeof(Ax_soapstream)); memset(sstr, 0, sizeof(Ax_soapstream)); // <<<<< insert this line However a found an other bug: ... if(0 != process_request(sstr)) { /*ap_rputs("SOAP Engine failed to response",req_rec);*/ return OK; // ###### sstr will never be freed!!!!! } if (sstr->so.http.op_headers) free(sstr->so.http.op_headers); free(sstr); ... My suggestion is to create to object on stack so it will be deleted for free: Ax_soapstream obj; memset(&obj, 0, sizeof(obj)); Ax_soapstream* sstr = &obj; ... --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira