[ 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]