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=6959>.
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=6959

Parsing from Memory crashes when multiple threads are running

           Summary: Parsing from Memory crashes when multiple threads are
                    running
           Product: Xerces-C++
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: SAX/SAX2
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In a multithreading environment, parsing from memory crashes the application. 
In the end, a simple memcpy within the MemBufInputSource resp. 
BinMemInputStream constructor fails, which indicates a corrupted heap. However, 
I could not locate the malicious code (using Boundschecker).

My code: 
MemBufInputSource in( str.c_str(), str.size(), "myparser" );
parser->parse( in );    // <-- bang! when many threads are running

Workaround: I am writing the XML data in a temporary file and parse from the 
file instead.

Probably the same as BUG#6578

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

Reply via email to