[xmlsec] problem encrypting / decrypting content of an empty element

Aleksey Sanin aleksey at aleksey.com
Mon Feb 9 08:41:47 PST 2004


You are absolutely right, it is a bug :( But the patch is actually can 
be much more simple:
just remove one un-necessary assert :)

Thanks for reporting the bug!
Aleksey

> Index: src/xmltree.c
> ===================================================================
> RCS file: /cvs/gnome/xmlsec/src/xmltree.c,v
> retrieving revision 1.33
> diff -u -r1.33 xmltree.c
> --- src/xmltree.c       8 Feb 2004 06:43:38 -0000       1.33
> +++ src/xmltree.c       9 Feb 2004 16:38:22 -0000
> @@ -515,7 +515,6 @@
>      xmlNodePtr ptr1, ptr2;
>  
>      xmlSecAssert2(node != NULL, -1);
> -    xmlSecAssert2(buffer != NULL, -1);
>       
>      doc = xmlSecParseMemoryExt((xmlSecByte*)dummyPrefix, 
> strlen(dummyPrefix),
>                                buffer, size,









More information about the xmlsec mailing list