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 2010/12/07 19:34:16 UTC

[jira] Updated: (SANTUARIO-205) TemplateSign runtime issues due to ArrayJanitor

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

Scott Cantor updated SANTUARIO-205:
-----------------------------------

    Fix Version/s: C++ 1.6.0

> TemplateSign runtime issues due to ArrayJanitor
> -----------------------------------------------
>
>                 Key: SANTUARIO-205
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-205
>             Project: Santuario
>          Issue Type: Bug
>          Components: C++
>    Affects Versions: C++ 1.5.1
>         Environment: Operating System: Windows XP
> Platform: PC
>            Reporter: Christian
>            Assignee: XML Security Developers Mailing List
>             Fix For: C++ 1.6.0
>
>
> Hello,
> I have been experimenting with the templatesign.exe from the XML-Security Library. My interest was in signing the template using RSA key with SHA256 digest.
> Environment: 
> Xerces 2.8.0
> No Xalan
> xml-security-c-1.5.1
> Visual Studio 2005
> After building the XML Security library and the tools (like templatesign.exe) I ran the following command on a self signed cert and key:
> templatesign.exe -s My.com -r key.pem secret -x cacert2.pem template.xml
> The program crashed.
> After some hours debugging I found out that there seems to be an issue with the ArrayJanitor(s) destructors. 
> I commented out the declaration of 
> // ArrayJanitor<XMLCh> j_encodedName(encodedName); (in DSIGKeyInfoX509.cpp
> , line 447) and 
> //ArrayJanitor<char> j_charX509(charX509); (in DSIGKeyInfoX509.cpp
> , line 568)
> Recompiled and it works now.
> What are those ArrayJanitor templates good for? I can't see that the j_name(name) array are ever used?
> thanks,
> Christian

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.