Assertion on XalanEXSLTFunctionEncodeURI when 3 arguments not supplied for 
Encode URI
-------------------------------------------------------------------------------------

         Key: XALANC-522
         URL: http://issues.apache.org/jira/browse/XALANC-522
     Project: XalanC
        Type: Bug
  Components: XalanC  
    Versions: 1.9    
 Environment: Linux debian woody; built from sources, xercesc 2.6. gcc 2.95
    Reporter: Steven King


When using <xsl:value-of select="str:encode-uri('asdf  ',true())"/> causes:

xslfunction.exe: /tmp/xalan-1.9/c/src/xalanc/Include/XalanVector.hpp:784: const 
class xalanc_1_9::XObjectPtr & 
xalanc_1_9::XalanVector<xalanc_1_9::XObjectPtr,xalanc_1_9::MemoryManagedConstructionTraits<xalanc_1_9::XObjectPtr>
 >::operator [](unsigned int) const: Assertion `theIndex < m_size' failed.

If I use <xsl:value-of select="str:encode-uri('asdf  ',true(),'utf-8')"/> then 
no problems or I comment the assertion out on

Line 384: XalanEXSLTString.cpp
/*
        assert(args[0].null() == false && 
                   args[1].null() == false &&
                   (theSize == 3 || args[2].null() == false));
*/

>From the code, see that the (theSize == 3 || args[2].null() == false) will 
>return false if no third argument supplied and hence cause assertion.

-- 
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]

Reply via email to