You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2002/03/27 13:34:57 UTC
DO NOT REPLY [Bug 7509] New: -
DOMString::appendData(const DOMString&) is broken
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: xerces-c-dev@xml.apache.org
ReportedBy: dozen@osw.com.ru
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org