Return-Path: Delivered-To: apmail-xml-xalan-dev-archive@www.apache.org Received: (qmail 91258 invoked from network); 16 Dec 2005 19:57:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Dec 2005 19:57:12 -0000 Received: (qmail 63486 invoked by uid 500); 16 Dec 2005 19:57:11 -0000 Delivered-To: apmail-xml-xalan-dev-archive@xml.apache.org Received: (qmail 63453 invoked by uid 500); 16 Dec 2005 19:57:10 -0000 Mailing-List: contact xalan-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: xalan-dev@xml.apache.org List-Id: Delivered-To: mailing list xalan-dev@xml.apache.org Received: (qmail 63442 invoked by uid 99); 16 Dec 2005 19:57:10 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL 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; Fri, 16 Dec 2005 11:57:08 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4C9B9183 for ; Fri, 16 Dec 2005 20:56:47 +0100 (CET) Message-ID: <922443030.1134763007311.JavaMail.jira@ajax.apache.org> Date: Fri, 16 Dec 2005 20:56:47 +0100 (CET) From: "David Bertoni (JIRA)" To: xalan-dev@xml.apache.org Subject: [jira] Resolved: (XALANC-583) XalanVector.hpp is missing initialiation of local variable In-Reply-To: <1037511576.1131741063180.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/XALANC-583?page=all ] David Bertoni resolved XALANC-583: ---------------------------------- Resolution: Fixed Patch applied. > XalanVector.hpp is missing initialiation of local variable > ---------------------------------------------------------- > > Key: XALANC-583 > URL: http://issues.apache.org/jira/browse/XALANC-583 > Project: XalanC > Type: Bug > Components: XalanC > Versions: 1.10 > Environment: N/A > Reporter: Soren Soe > Assignee: David Bertoni > Attachments: patch.txt > > The member function 'local_distance' declares 'size_type theDistance' but does not initialize the variable. The variable is passed to std::distance(itr,itr,distance), where its value is referenced and used in a '+=' expression. Failing to initialize 'theDistance' causes 'local_distance' to have undefined behavior, ultimately leading to a crash at runtime. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-dev-help@xml.apache.org