Return-Path: X-Original-To: apmail-xalan-dev-archive@www.apache.org Delivered-To: apmail-xalan-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 13510F225 for ; Wed, 10 Apr 2013 20:43:17 +0000 (UTC) Received: (qmail 75230 invoked by uid 500); 10 Apr 2013 20:43:16 -0000 Delivered-To: apmail-xalan-dev-archive@xalan.apache.org Received: (qmail 75063 invoked by uid 500); 10 Apr 2013 20:43:16 -0000 Mailing-List: contact dev-help@xalan.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@xalan.apache.org Delivered-To: mailing list dev@xalan.apache.org Received: (qmail 75014 invoked by uid 99); 10 Apr 2013 20:43:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Apr 2013 20:43:16 +0000 Date: Wed, 10 Apr 2013 20:43:16 +0000 (UTC) From: "Michael Chisholm (JIRA)" To: dev@xalan.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (XALANC-742) XalanVector assignment operator crash bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/XALANC-742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Chisholm updated XALANC-742: ------------------------------------ Environment: Tested on Windows 7 (was: Tested on Windows 7 and RHEL5) > XalanVector assignment operator crash bug > ----------------------------------------- > > Key: XALANC-742 > URL: https://issues.apache.org/jira/browse/XALANC-742 > Project: XalanC > Issue Type: Bug > Components: XalanC > Affects Versions: CurrentCVS, 1.11 > Environment: Tested on Windows 7 > Reporter: Michael Chisholm > Assignee: Steven J. Hathaway > Priority: Critical > > When assigning an empty XalanVector to another, a NULL dereference and crash results. Specifically, the std::copy() statement copies to this->begin(), which returns NULL when the vector is empty. > Here is simple demo code: > #include > #include > using namespace xercesc; > using namespace xalanc; > int main(int argc, char* argv[]) > { > XMLPlatformUtils::Initialize(); > XalanVector vec1; > XalanVector vec2(XalanMemMgrs::getDefaultXercesMemMgr(), 5); > vec1 = vec2; > XMLPlatformUtils::Terminate(); > > return 0; > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@xalan.apache.org For additional commands, e-mail: dev-help@xalan.apache.org