Details
Description
If you got an invalid encoded UTF-8-sequence, the TranscodeFromStr ends up by throwing a OutOfMemoryException and if you use XMLTranscoder::transcodeFrom() directly you'll somehow probably end up in a loop that never ends, 'cause it stops to consume/eat bytes. Shouldn't there be some "InvalidEncodingException" instead ?
...
const char string[] = "HÖPP";
const int size = strlen( string);
xercesc::TranscodeFromStr transcoder( reinterpret_cast<const XMLByte *>(string), size, "UTF8");
// OutOfMemoryException