stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From far...@apache.org
Subject svn commit: r572979 - /incubator/stdcxx/trunk/src/catalog.cpp
Date Wed, 05 Sep 2007 15:59:32 GMT
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 <vitek@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;



Mime
View raw message