http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2277 *** shadow/2277 Thu Jun 21 17:20:17 2001 --- shadow/2277.tmp.15881 Thu Jun 21 17:20:17 2001 *************** *** 0 **** --- 1,30 ---- + +============================================================================+ + | bad argument to ConvertFromUnicodeToText | + +----------------------------------------------------------------------------+ + | Bug #: 2277 Product: Xerces-C | + | Status: NEW Version: 1.5 | + | Resolution: Platform: Macintosh | + | Severity: Major OS/Version: MacOS 9 | + | Priority: Other Component: Utilities | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: http://developer.apple.com/techpubs/macos8/TextIntlSvcs/Text | + +============================================================================+ + | DESCRIPTION | + File: util/Transcoders/MacOSUnicodeConverter/MacOSUnicodeConverter.cpp + Line: 910 + Proc: MacOSLCPTranscoder::calcRequiredSize(const XMLCh* const srcText) + + The size of the output buffer is being passed incorrectly, resulting in an + overwriten stack when the input is large. + + The 9th argument to ConvertFromUnicodeToText is: + + kTempUniBufCount * sizeof(UniChar), // output buffer size in bytes + + but should be: + + kTempUniBufCount, // output buffer size in bytes \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
