You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2003/11/21 16:44:12 UTC
cvs commit: xml-xerces/c/src/xercesc/util ValueVectorOf.c
amassari 2003/11/21 07:44:12
Modified: c/src/xercesc/util ValueVectorOf.c
Log:
insertElementAt was not checking if there was room for the new element (bug#24714)
Revision Changes Path
1.8 +4 -0 xml-xerces/c/src/xercesc/util/ValueVectorOf.c
Index: ValueVectorOf.c
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/ValueVectorOf.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ValueVectorOf.c 29 May 2003 13:26:44 -0000 1.7
+++ ValueVectorOf.c 21 Nov 2003 15:44:12 -0000 1.8
@@ -56,6 +56,9 @@
/**
* $Log$
+ * Revision 1.8 2003/11/21 15:44:12 amassari
+ * insertElementAt was not checking if there was room for the new element (bug#24714)
+ *
* Revision 1.7 2003/05/29 13:26:44 knoaman
* Fix memory leak when using deprecated dom.
*
@@ -221,6 +224,7 @@
ThrowXML(ArrayIndexOutOfBoundsException, XMLExcepts::Vector_BadIndex);
// Make room for the newbie
+ ensureExtraCapacity(1);
for (unsigned int index = fCurCount; index > insertAt; index--)
fElemList[index] = fElemList[index-1];
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org