[xmlsec] Memory leak ( Verify Signature using Invalid Transform type)

Alexwell Sandro alexwellll at gmail.com
Fri Aug 30 16:10:25 PDT 2013


I am using xmlsec1-1.2.19

Documents attached:

*signature_enveloping_edited_invalid_transform.xml*
Contains Xml Signature enveloping of binary file edited.
(Added Invalid Transform to binary:  *<ds:Transform Algorithm="
http://www.w3.org/2001/10/xml-exc-c14n#"/>* )

*log_from_stderr.txt*
Contains prints from XmlSec library (eg.:
func=xmlSecParserPushBin:file=..\(...) )

*log_from_memory_leak_detector.txt*
Contains memory leak trace.



On Fri, Aug 30, 2013 at 7:06 PM, Aleksey Sanin <aleksey at aleksey.com> wrote:

> Any chance you can send the complete XML file that demonstrates
> the problem? Or the exact print-out from the memory leak?
>
> Thanks in advance,
>
> Aleksey
>
> On 8/30/13 11:30 AM, Alexwell Sandro wrote:
> > I create enveloping signature of binary file:
> >
> > ...
> > <ds:Reference Id="myId" URI="#*ObjectId*">
> > <ds:Transforms>
> > <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64"/>
> > </ds:Transforms>
> > ...
> > <ds:Object Id="*ObjectId*">ghimBgkq</ds:Object>
> > ...
> >
> > *I edited the file placing a transform (invalid to binary):*
> >
> > ...
> > <ds:Reference Id="myId" URI="#*ObjectId*">
> > <ds:Transforms>
> > <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#base64"/>
> > *<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>*
> > </ds:Transforms>
> > ...
> > <ds:Object Id="*ObjectId*">ghimBgkq</ds:Object>
> > ...
> >
> > When verify occurs memory leak.
> >
> > Is related to (at *transforms.c* line 2807)
> > *buffer =
> > (xmlSecTransformIOBufferPtr)xmlMalloc(sizeof(xmlSecTransformIOBuffer));*
> >
> > (at *c14n.c* line 277).
> >
> > ...
> > *ret = xmlOutputBufferClose(buf);*
> > ...
> > ret contains the value (-1)
> >
> > Is memory leak, or some error in my build?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > xmlsec mailing list
> > xmlsec at aleksey.com
> > http://www.aleksey.com/mailman/listinfo/xmlsec
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130830/8b6055af/attachment-0001.html>
-------------- next part --------------
func=xmlSecParserPushBin:file=..\src\parser.c:line=181:obj=xml-parser:subj=xmlPa
rseChunk:error=5:libxml2 library function failed:size=6;last error=0 (0x00000000
);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecTransformDefaultPushBin:file=..\src\transforms.c:line=2234:obj=xml-pa
rser:subj=xmlSecTransformPushBin:error=1:xmlsec library function failed:final=0;
outSize=6;last error=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da c
om ?¬xito.

func=xmlSecTransformIOBufferWrite:file=..\src\transforms.c:line=2869:obj=base64:
subj=xmlSecTransformPushBin:error=1:xmlsec library function failed: ;last error=
0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecParserPushBin:file=..\src\parser.c:line=181:obj=xml-parser:subj=xmlPa
rseChunk:error=5:libxml2 library function failed:size=6;last error=0 (0x00000000
);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecTransformDefaultPushBin:file=..\src\transforms.c:line=2234:obj=xml-pa
rser:subj=xmlSecTransformPushBin:error=1:xmlsec library function failed:final=1;
outSize=6;last error=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da c
om ?¬xito.

func=xmlSecTransformIOBufferClose:file=..\src\transforms.c:line=2891:obj=base64:
subj=xmlSecTransformPushBin:error=1:xmlsec library function failed: ;last error=
0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecTransformC14NPushXml:file=..\src\c14n.c:line=279:obj=remove-xml-tags-
transform:subj=xmlOutputBufferClose:error=5:libxml2 library function failed: ;la
st error=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecTransformDefaultPushXml:file=..\src\transforms.c:line=2417:obj=xpoint
er:subj=xmlSecTransformPushXml:error=1:xmlsec library function failed: ;last err
or=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecTransformCtxXmlExecute:file=..\src\transforms.c:line=1236:obj=unknown
:subj=xmlSecTransformPushXml:error=1:xmlsec library function failed:transform=xp
ointer;last error=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com
?¬xito.

func=xmlSecTransformCtxExecute:file=..\src\transforms.c:line=1296:obj=unknown:su
bj=xmlSecTransformCtxXmlExecute:error=1:xmlsec library function failed: ;last er
ror=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecDSigReferenceCtxProcessNode:file=..\src\xmldsig.c:line=1571:obj=unkno
wn:subj=xmlSecTransformCtxExecute:error=1:xmlsec library function failed: ;last
error=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.

func=xmlSecDSigCtxProcessSignedInfoNode:file=..\src\xmldsig.c:line=804:obj=unkno
wn:subj=xmlSecDSigReferenceCtxProcessNode:error=1:xmlsec library function failed
:node=Reference;last error=0 (0x00000000);last error msg=A opera?º?úo foi conclu
?¡da com ?¬xito.

func=xmlSecDSigCtxProcessSignatureNode:file=..\src\xmldsig.c:line=547:obj=unknow
n:subj=xmlSecDSigCtxProcessSignedInfoNode:error=1:xmlsec library function failed
: ;last error=0 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xi
to.

func=xmlSecDSigCtxVerify:file=..\src\xmldsig.c:line=366:obj=unknown:subj=xmlSecD
SigCtxSignatureProcessNode:error=1:xmlsec library function failed: ;last error=0
 (0x00000000);last error msg=A opera?º?úo foi conclu?¡da com ?¬xito.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature_enveloping_edited_invalid_transform.xml
Type: text/xml
Size: 2280 bytes
Desc: not available
URL: <http://www.aleksey.com/pipermail/xmlsec/attachments/20130830/8b6055af/attachment-0001.xml>
-------------- next part --------------
WARNING: Visual Leak Detector detected memory leaks!
---------- Block 16150 at 0x050F5AC8: 12 bytes ----------
  Call Stack:
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2807): XmlSecTest.exe!xmlSecTransformIOBufferCreate + 0x8 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2716): XmlSecTest.exe!xmlSecTransformCreateOutputBuffer + 0xF bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (240): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x10 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1897): XmlSecTest.exe!xmlSecTransformPushXml + 0x16 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2415): XmlSecTest.exe!xmlSecTransformDefaultPushXml + 0x17 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1897): XmlSecTest.exe!xmlSecTransformPushXml + 0x16 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1234): XmlSecTest.exe!xmlSecTransformCtxXmlExecute + 0x14 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1294): XmlSecTest.exe!xmlSecTransformCtxExecute + 0xD bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\xmldsig.c (1569): XmlSecTest.exe!xmlSecDSigReferenceCtxProcessNode + 0x10 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\xmldsig.c (802): XmlSecTest.exe!xmlSecDSigCtxProcessSignedInfoNode + 0xD bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\xmldsig.c (545): XmlSecTest.exe!xmlSecDSigCtxProcessSignatureNode + 0xD bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\xmldsig.c (364): XmlSecTest.exe!xmlSecDSigCtxVerify + 0xD bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsec\verifier.cpp (103): XmlSecTest.exe!::XmlSec::Verifier::verifyIntegrity + 0x10 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\utilxmltest.cpp (813): XmlSecTest.exe!UtilXmlTest_verifyIntegrity_detached_binary_withC14NTransform_Test::TestBody
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test,void> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    01 00 00 00    08 51 0F 05    FC E9 0E 05                    .....Q.. ........


---------- Block 16160 at 0x050F9370: 32 bytes ----------
  Call Stack:
    0x010B4540 (File and line number not available): XmlSecTest.exe!xmlDictCreate + 0x40 bytes
    0x010B39D9 (File and line number not available): XmlSecTest.exe!xmlInitParserCtxt + 0x49 bytes
    0x010B3E2A (File and line number not available): XmlSecTest.exe!xmlNewParserCtxt + 0x3A bytes
    0x010722A2 (File and line number not available): XmlSecTest.exe!xmlCreatePushParserCtxt + 0x42 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\parser.c (149): XmlSecTest.exe!xmlSecParserPushBin + 0xF bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2232): XmlSecTest.exe!xmlSecTransformDefaultPushBin + 0x28 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2867): XmlSecTest.exe!xmlSecTransformIOBufferWrite + 0x1D bytes
    0x010D4683 (File and line number not available): XmlSecTest.exe!xmlOutputBufferFlush + 0xD3 bytes
    0x010D4EFD (File and line number not available): XmlSecTest.exe!xmlOutputBufferClose + 0x1D bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (277): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x9 bytes
    0x0044F300 (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    01 00 00 00    D0 93 0F 05    80 00 00 00    03 00 00 00     ........ ........
    38 A1 0F 05    00 00 00 00    00 00 00 00    80 96 98 00     8....... ........


---------- Block 16161 at 0x050F93D0: 2560 bytes ----------
  Call Stack:
    0x010B4567 (File and line number not available): XmlSecTest.exe!xmlDictCreate + 0x67 bytes
    0x010B39D9 (File and line number not available): XmlSecTest.exe!xmlInitParserCtxt + 0x49 bytes
    0x010B3E2A (File and line number not available): XmlSecTest.exe!xmlNewParserCtxt + 0x3A bytes
    0x010722A2 (File and line number not available): XmlSecTest.exe!xmlCreatePushParserCtxt + 0x42 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\parser.c (149): XmlSecTest.exe!xmlSecParserPushBin + 0xF bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2232): XmlSecTest.exe!xmlSecTransformDefaultPushBin + 0x28 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2867): XmlSecTest.exe!xmlSecTransformIOBufferWrite + 0x1D bytes
    0x010D4683 (File and line number not available): XmlSecTest.exe!xmlOutputBufferFlush + 0xD3 bytes
    0x010D4EFD (File and line number not available): XmlSecTest.exe!xmlOutputBufferClose + 0x1D bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (277): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x9 bytes
    0x0044F300 (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........


---------- Block 16169 at 0x050FA138: 1024 bytes ----------
  Call Stack:
    0x010B4005 (File and line number not available): XmlSecTest.exe!xmlDictCleanup + 0x95 bytes
    0x010B4CCD (File and line number not available): XmlSecTest.exe!xmlDictLookup + 0x1ED bytes
    0x0106EE60 (File and line number not available): XmlSecTest.exe!xmlHasFeature + 0x110 bytes
    0x0108B6BC (File and line number not available): XmlSecTest.exe!xmlParseChunk + 0x5C bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\parser.c (179): XmlSecTest.exe!xmlSecParserPushBin + 0x15 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2232): XmlSecTest.exe!xmlSecTransformDefaultPushBin + 0x28 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2867): XmlSecTest.exe!xmlSecTransformIOBufferWrite + 0x1D bytes
    0x010D4683 (File and line number not available): XmlSecTest.exe!xmlOutputBufferFlush + 0xD3 bytes
    0x010D4EFD (File and line number not available): XmlSecTest.exe!xmlOutputBufferClose + 0x1D bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (277): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x9 bytes
    0x0044F300 (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    00 00 00 00    7B A1 0F 05    34 A5 0F 05    E8 03 00 00     ....{... 4.......
    03 00 00 00    78 6D 6C 00    78 6D 6C 6E    73 00 68 74     ....xml. xmlns.ht
    74 70 3A 2F    2F 77 77 77    2E 77 33 2E    6F 72 67 2F     tp://www .w3.org/
    58 4D 4C 2F    31 39 39 38    2F 6E 61 6D    65 73 70 61     XML/1998 /namespa
    63 65 00 CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ce...... ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........
    CD CD CD CD    CD CD CD CD    CD CD CD CD    CD CD CD CD     ........ ........


---------- Block 16170 at 0x050FA578: 20 bytes ----------
  Call Stack:
    0x010B4CF1 (File and line number not available): XmlSecTest.exe!xmlDictLookup + 0x211 bytes
    0x0106EE92 (File and line number not available): XmlSecTest.exe!xmlHasFeature + 0x142 bytes
    0x0108B6BC (File and line number not available): XmlSecTest.exe!xmlParseChunk + 0x5C bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\parser.c (179): XmlSecTest.exe!xmlSecParserPushBin + 0x15 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2232): XmlSecTest.exe!xmlSecTransformDefaultPushBin + 0x28 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2867): XmlSecTest.exe!xmlSecTransformIOBufferWrite + 0x1D bytes
    0x010D4683 (File and line number not available): XmlSecTest.exe!xmlOutputBufferFlush + 0xD3 bytes
    0x010D4EFD (File and line number not available): XmlSecTest.exe!xmlOutputBufferClose + 0x1D bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (277): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x9 bytes
    0x0044F300 (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    00 00 00 00    56 A1 0F 05    24 00 00 00    01 00 00 00     ....V... $.......
    BA 10 00 00                                                  ........ ........


---------- Block 16172 at 0x050FA608: 96 bytes ----------
  Call Stack:
    0x010A5147 (File and line number not available): XmlSecTest.exe!xmlNewDoc + 0x17 bytes
    0x010C895F (File and line number not available): XmlSecTest.exe!xmlSAX2StartDocument + 0x5F bytes
    0x01089B0A (File and line number not available): XmlSecTest.exe!xmlParseDocument + 0x89A bytes
    0x0108B917 (File and line number not available): XmlSecTest.exe!xmlParseChunk + 0x2B7 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\parser.c (179): XmlSecTest.exe!xmlSecParserPushBin + 0x15 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2232): XmlSecTest.exe!xmlSecTransformDefaultPushBin + 0x28 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2867): XmlSecTest.exe!xmlSecTransformIOBufferWrite + 0x1D bytes
    0x010D4683 (File and line number not available): XmlSecTest.exe!xmlOutputBufferFlush + 0xD3 bytes
    0x010D4EFD (File and line number not available): XmlSecTest.exe!xmlOutputBufferClose + 0x1D bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (277): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x9 bytes
    0x0044F300 (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    00 00 00 00    09 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    00 00 00 00     ........ ........
    08 A6 0F 05    FF FF FF FF    FF FF FF FF    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    A8 A6 0F 05    00 00 00 00     ........ ........
    00 00 00 00    00 00 00 00    00 00 00 00    01 00 00 00     ........ ........
    70 93 0F 05    00 00 00 00    00 00 00 00    00 00 00 00     p....... ........


---------- Block 16173 at 0x050FA6A8: 4 bytes ----------
  Call Stack:
    0x010B55BA (File and line number not available): XmlSecTest.exe!xmlStrdup + 0x2A bytes
    0x010A517F (File and line number not available): XmlSecTest.exe!xmlNewDoc + 0x4F bytes
    0x010C895F (File and line number not available): XmlSecTest.exe!xmlSAX2StartDocument + 0x5F bytes
    0x01089B0A (File and line number not available): XmlSecTest.exe!xmlParseDocument + 0x89A bytes
    0x0108B917 (File and line number not available): XmlSecTest.exe!xmlParseChunk + 0x2B7 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\parser.c (179): XmlSecTest.exe!xmlSecParserPushBin + 0x15 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2232): XmlSecTest.exe!xmlSecTransformDefaultPushBin + 0x28 bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (1851): XmlSecTest.exe!xmlSecTransformPushBin + 0x1E bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\transforms.c (2867): XmlSecTest.exe!xmlSecTransformIOBufferWrite + 0x1D bytes
    0x010D4683 (File and line number not available): XmlSecTest.exe!xmlOutputBufferFlush + 0xD3 bytes
    0x010D4EFD (File and line number not available): XmlSecTest.exe!xmlOutputBufferClose + 0x1D bytes
    c:\users\alex\desktop\xmlseclibs\xmlsec1-with cert subject memory leak fix\src\c14n.c (277): XmlSecTest.exe!xmlSecTransformC14NPushXml + 0x9 bytes
    0x0044F300 (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    0xCCCCCCCC (File and line number not available): (Module name unavailable)!(Function name unavailable)
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,void> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2162): XmlSecTest.exe!testing::Test::Run + 0x13 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2342): XmlSecTest.exe!testing::TestInfo::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2446): XmlSecTest.exe!testing::TestCase::Run
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (4238): XmlSecTest.exe!testing::internal::UnitTestImpl::RunAllTests
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2075): XmlSecTest.exe!testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x8 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (2126): XmlSecTest.exe!testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,bool> + 0x11 bytes
    d:\visualworkspace\gtest-1.6.0\src\gtest.cc (3874): XmlSecTest.exe!testing::UnitTest::Run + 0x18 bytes
    d:\visualworkspace\xadeswin\xmlsec\xmlsec\xmlsectest\main.cpp (12): XmlSecTest.exe!main + 0xC bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (278): XmlSecTest.exe!__tmainCRTStartup + 0x19 bytes
    f:\dd\vctools\crt_bld\self_x86\crt\src\crt0.c (189): XmlSecTest.exe!mainCRTStartup
    0x765533AA (File and line number not available): kernel32.dll!BaseThreadInitThunk + 0x12 bytes
    0x77219F72 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x63 bytes
    0x77219F45 (File and line number not available): ntdll.dll!RtlInitializeExceptionChain + 0x36 bytes
  Data:
    31 2E 30 00                                                  1.0..... ........


Visual Leak Detector detected 7 memory leaks (48178 bytes).
Largest number used: 950916 bytes.
Total allocations: 1292504 bytes.
Visual Leak Detector is now exiting.


More information about the xmlsec mailing list