xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bertoni (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Resolved: (XALANC-583) XalanVector.hpp is missing initialiation of local variable
Date Fri, 16 Dec 2005 19:56:47 GMT
     [ 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:
For more information on JIRA, see:

To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org

View raw message