You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2007/09/05 17:59:32 UTC
svn commit: r572979 - /incubator/stdcxx/trunk/src/catalog.cpp
Author: faridz
Date: Wed Sep 5 08:59:31 2007
New Revision: 572979
URL: http://svn.apache.org/viewvc?rev=572979&view=rev
Log:
2007-09-05 Travis Vitek <vi...@roguewave.com>
STDCXX-542
* catalog.cpp (catclose): check bounds before index to avoid out of
bound access.
Modified:
incubator/stdcxx/trunk/src/catalog.cpp
Modified: incubator/stdcxx/trunk/src/catalog.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/catalog.cpp?rev=572979&r1=572978&r2=572979&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/catalog.cpp (original)
+++ incubator/stdcxx/trunk/src/catalog.cpp Wed Sep 5 08:59:31 2007
@@ -134,7 +134,7 @@
delete __rw_catlist[i];
__rw_catlist[i] = 0;
CatVector::size_type j;
- for (j = i+1; __rw_catlist[j] && j < __rw_catlist.size(); j++)
+ for (j = i+1; j < __rw_catlist.size() && __rw_catlist[j]; j++)
__rw_catlist[j-1] = __rw_catlist[j];
if (j < __rw_catlist.size())
__rw_catlist[j] = 0;