Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 18478 invoked from network); 22 Jun 2007 02:40:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Jun 2007 02:40:21 -0000 Received: (qmail 38148 invoked by uid 500); 22 Jun 2007 02:40:24 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 38130 invoked by uid 500); 22 Jun 2007 02:40:24 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 38119 invoked by uid 99); 22 Jun 2007 02:40:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jun 2007 19:40:24 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [209.68.5.17] (HELO relay03.pair.com) (209.68.5.17) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 21 Jun 2007 19:40:19 -0700 Received: (qmail 38205 invoked from network); 22 Jun 2007 02:39:56 -0000 Received: from 124.43.222.65 (HELO ?10.100.1.195?) (124.43.222.65) by relay03.pair.com with SMTP; 22 Jun 2007 02:39:56 -0000 X-pair-Authenticated: 124.43.222.65 Message-ID: <467B2FAC.3040102@wso2.com> Date: Fri, 22 Jun 2007 08:10:52 +0600 From: Samisa Abeysinghe User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2__create missing References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Dr. Florian Steinborn wrote: > For more safety it would be desirable if the generation would add the > memset() call. +1 for calling memset(). Please raise a Jira on this. > I did not initialize every field of the structure before returning it > and the service crashed (with the server), when it tried to return the > values. In that the generated function axis2_Date_serialize() is > called. This function has a problem, as it tries to print (with > sprintf()) all the numeric members of the Dat-struct into 64-bytes > memory blocks. Printing a double with sprintf() this way into a > 64-byte array will most likely crash, especially with uninitialized > memory, as the resulting string will be longer than 64 bytes. To figure out the exact problem, I would like to codegen and see. Would it be possible to send the WSDL file you are using? (if it is OK to make it public only) > > Unfortunately the user cannot call the memset himself after calling > the constructor as the real length of the type is hidden in the > module. I myself now know that I have to call the setter method for > each member of a new struct. Calling setter for all members not an elegant solution. We got to do the memset fix in the codegen code. Samisa... > > Thanks, > Flori. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > -- Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org