DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12929>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12929

Base64::encode returns newly allocated array with no way to delete it

           Summary: Base64::encode returns newly allocated array with no way
                    to delete it
           Product: Xerces-C++
           Version: 2.0.0
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


here is my problem:

XMLByte *out = NULL;

out = Base64::encode((XMLByte *) my_buf,my_buf_len,&outLen);
if (out)
{
        delete[] out;   // was allocated by Xerces
}

the delete call will crash the program making this call using Xerces as a DLL.

A workaround may be to use the Code Generation "MultiThreaded DLL" option but 
we should NOT have to do that.

proposal: add a function to Base64.hpp to delete the allocated array.

let me know if you need more info,

   Matthieu.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to