xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitry Hayes (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Commented: (XALANC-583) XalanVector.hpp is missing initialiation of local variable
Date Fri, 16 Dec 2005 15:53:46 GMT
    [ http://issues.apache.org/jira/browse/XALANC-583?page=comments#action_12360593 ] 

Dmitry Hayes commented on XALANC-583:
-------------------------------------

The patch looks ok , let's commit it . Thanks!

> 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


Mime
View raw message