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=7509>. 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=7509 DOMString::appendData(const DOMString&) is broken Summary: DOMString::appendData(const DOMString&) is broken Product: Xerces-C++ Version: 1.6.0 Platform: All OS/Version: Other Status: NEW Severity: Major Priority: Other Component: DOM AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] DOMString::appendData does not add trailing zero to resulting string, which causes trash characters be written into attribute values (for example). Part of method code: ==================================== // // This string now had enough buffer room to hold the data to // be appended. Go ahead and copy it in. XMLCh *srcP = other.fHandle->fDSData->fData; XMLCh *destP = &fHandle->fDSData->fData[fHandle->fLength]; unsigned int i; for (i=0; i<other.fHandle->fLength; i++) destP[i] = srcP[i]; // dozen: here is my fix for this bug destP[i] = 0; fHandle->fLength += other.fHandle->fLength; } ====================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
