[xmlsec] XML Sig crashes....

Yee Hsu yeehsu at opswat.com
Fri Feb 24 10:15:06 PST 2006


Um... thanks, but I don't think that is the case.

I set it up to use Multithreaded DLL /Md (in release)
And it still crashes.

I stripped down every code until I get this piece...
And it STILL crashes.....




#include <stdlib.h>
#include <string.h>

/*
#define LIBXML_STATIC
#define LIBXSLT_STATIC
#define XMLSEC_STATIC
*/

#include <libxml/tree.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>

int main(int argc, char **argv)
{
    xmlDocPtr doc = NULL;

    /* load doc file */
    doc = xmlParseFile(argv[1]);

    if (doc)
    {        
        /* print xml document to stdout */
        xmlDocDump(stdout, doc);				// CRASHES
HERE
    }   
    return(0);
}



Perhaps something is wrong with the libxml2 lib/dll I am using.

Thanks,
yee









Yee Hsu
OPSWAT Inc.
480 2nd St. Suite 303
San Francisco, CA 94107-1426
Phone: 415-543-1534
Fax:     415-543-1282
yeehsu at opswat.com
www.opswat.com


-----Original Message-----
From: Aleksey Sanin [mailto:aleksey at aleksey.com] 
Sent: Thursday, February 23, 2006 6:27 PM
To: Yee Hsu
Cc: xmlsec at aleksey.com
Subject: Re: [xmlsec] XML Sig crashes....

 >
 > The program crashes on the call to the function
 >         xmlDocDump(stdout, doc);
 >

Section 2.7 from the FAQ http://www.aleksey.com/xmlsec/faq.html


Aleksey






More information about the xmlsec mailing list