You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Scott Cantor (JIRA)" <ji...@apache.org> on 2011/04/15 23:46:05 UTC

[jira] [Resolved] (SANTUARIO-268) TXFMXPathFilter->evaluateExpr crashes on Windows

     [ https://issues.apache.org/jira/browse/SANTUARIO-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor resolved SANTUARIO-268.
------------------------------------

    Resolution: Fixed

All instances of < end() have been replaced with != end().

> TXFMXPathFilter->evaluateExpr crashes on Windows
> ------------------------------------------------
>
>                 Key: SANTUARIO-268
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-268
>             Project: Santuario
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: C++ 1.6.0
>         Environment: Windows, Visual Studio 2005
>            Reporter: Patrick Hagelkruys
>            Assignee: Scott Cantor
>         Attachments: patch.txt
>
>
> In the evaluateExpr function of the TXFMXPathFilter class, the iteration over the std::vector crashes, caused by the for loop.
> The iterator is set to std::vector->begin and incremeted before the fist loop run, changing the loop incrementer from ++i to i++ fixed this problem. This only crashes if the std::vector hast only one item. 
> The evaluateExpr function of the TXFMXPathFilter class takes an std::vector as Parameter. Passing std::vector accross DLLs does not allways work on Windows, and its recommended not to do that. 
> As solution I added an class function taking an sinlge DSIGXPathFilterExpr as parameter, creating an std::vector array with this filter and passing the filter to the evaluateExpr function. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira