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 Berin Lautenbach <be...@wingsofhermes.org> on 2004/04/02 14:55:47 UTC
Bug in DOMNamedNodeMapImpl
Peoples,
There is a bug in DOMNamedNodeMapImpl::item(XMLSize_t) where count is
not incremented as the loop searches through the holding array.
It means that items are not retrieved if they are not in the first bucket.
The bug is only in CVS, so I haven't put anything in bugzilla.
diff appended below (well, it's a fix that works for me, anyway :>).
Cheers,
Berin
cvs -z3 diff DOMNamedNodeMapImpl.cpp (in directory
C:\prog\SRC\xml-xerces.cvs\c\src\xercesc\dom\impl)
Index: DOMNamedNodeMapImpl.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMNamedNodeMapImpl.cpp,v
retrieving revision 1.11
diff -r1.11 DOMNamedNodeMapImpl.cpp
130a131
> count += thisBucket;
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Bug in DOMNamedNodeMapImpl
Posted by Alberto Massari <am...@progress.com>.
At 22.55 02/04/2004 +1000, you wrote:
>Peoples,
>
>There is a bug in DOMNamedNodeMapImpl::item(XMLSize_t) where count is not
>incremented as the loop searches through the holding array.
>
>It means that items are not retrieved if they are not in the first bucket.
>
>The bug is only in CVS, so I haven't put anything in bugzilla.
>
>diff appended below (well, it's a fix that works for me, anyway :>).
Thanks for spotting this,
Alberto
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org