Message:

   The following issue has been resolved as FIXED.

   Resolver: Alberto Massari
       Date: Thu, 8 Jul 2004 12:36 PM

Instead of adding a call to chop(), I have fixed the set() function. Please verify the 
fix in CVS.

Alberto
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1236

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1236
    Summary: DOMCharacterDataImpl::DOMCharacterDataImpl don't put termination 
zero.(when reuse string)
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: FIXED

    Project: Xerces-C++
 Components: 
             DOM
   Versions:
             2.5.0

   Assignee: 
   Reporter: Denis Badikov

    Created: Tue, 29 Jun 2004 12:37 PM
    Updated: Thu, 8 Jul 2004 12:36 PM
Environment: MSVC++ 7.1 STLport 4.6.2

Description:
Autotest tests\DOM\Normalizer\Normalizer.cpp fails.

Reason:
See: src\xercesc\dom\impl\DOMCharacterDataImpl.cpp

DOMCharacterDataImpl::DOMCharacterDataImpl(DOMDocument *doc, const XMLCh *dat)
 : fDataBuf(0)
 , fDoc(0)
{
    fDoc = (DOMDocumentImpl*)doc;

    fDataBuf = fDoc->popBuffer();
    if (!fDataBuf)
        fDataBuf = new (fDoc) DOMBuffer(fDoc, dat);// null terminated
    else
    {
        fDataBuf->set(dat);
        fDataBuf->chop(fDataBuf->getLen());// FIX! should manually terminate raw 
buffer.
    }
}



---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to