[ https://issues.apache.org/jira/browse/XERCESC-1916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov updated XERCESC-1916: ------------------------------------- Fix Version/s: 3.2.0 (was: 3.0.1) Component/s: Utilities (was: DOM) Scheduling for 3.2.0. > TranscodeFromStr fails with invalid UTF8 encoded strings > -------------------------------------------------------- > > Key: XERCESC-1916 > URL: https://issues.apache.org/jira/browse/XERCESC-1916 > Project: Xerces-C++ > Issue Type: Bug > Components: Utilities > Environment: WIN32, Solaris32 > Reporter: Kristian Ivarsson > Fix For: 3.2.0 > > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org