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=9553>. 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=9553 purify UMR in XMLRecognizer::basicEncodingProbe Summary: purify UMR in XMLRecognizer::basicEncodingProbe Product: Xerces-C++ Version: 1.7.0 Platform: All OS/Version: All Status: NEW Severity: Normal Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] To fix, here's the patch: diff -c -p -r1.1.1.1 XMLRecognizer.cpp *** src/xercesc/framework/XMLRecognizer.cpp 16 Mar 2002 04:12:19 -0000 1.1.1.1 --- src/xercesc/framework/XMLRecognizer.cpp 30 May 2002 21:08:23 -0000 *************** XMLRecognizer::basicEncodingProbe( cons *** 171,183 **** // if ((rawBuffer[0] == 0x00) || (rawBuffer[0] == 0x3C)) { ! if (!memcmp(rawBuffer, fgUCS4BPre, fgUCS4PreLen)) return UCS_4B; ! else if (!memcmp(rawBuffer, fgUCS4LPre, fgUCS4PreLen)) return UCS_4L; ! else if (!memcmp(rawBuffer, fgUTF16BPre, fgUTF16PreLen)) return UTF_16B; ! else if (!memcmp(rawBuffer, fgUTF16LPre, fgUTF16PreLen)) return UTF_16L; } --- 171,187 ---- // if ((rawBuffer[0] == 0x00) || (rawBuffer[0] == 0x3C)) { ! if (rawByteCount >= fgUCS4PreLen ! && !memcmp(rawBuffer, fgUCS4BPre, fgUCS4PreLen)) return UCS_4B; ! else if (rawByteCount >= fgUCS4PreLen ! && !memcmp(rawBuffer, fgUCS4LPre, fgUCS4PreLen)) return UCS_4L; ! else if (rawByteCount >= fgUTF16PreLen ! && !memcmp(rawBuffer, fgUTF16BPre, fgUTF16PreLen)) return UTF_16B; ! else if (rawByteCount >= fgUTF16PreLen ! && !memcmp(rawBuffer, fgUTF16LPre, fgUTF16PreLen)) return UTF_16L; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
