]> granicus.if.org Git - icu/commitdiff
ICU-11006 Memory crash/corruption in for loop due to typo in the file (source/i18n...
authorAndy Heninger <andy.heninger@gmail.com>
Wed, 16 Jul 2014 21:04:08 +0000 (21:04 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Wed, 16 Jul 2014 21:04:08 +0000 (21:04 +0000)
X-SVN-Rev: 36047

icu4c/source/i18n/rbt_data.cpp

index bdb7ead8c3b2d29d855548ac58b3482c431b912d..cb949e541e242081ae0d00aa96fb06966aa0898a 100644 (file)
@@ -1,6 +1,6 @@
 /*
 **********************************************************************
-*   Copyright (C) 1999-2011, International Business Machines
+*   Copyright (C) 1999-2014, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 **********************************************************************
 *   Date        Name        Description
@@ -72,7 +72,7 @@ TransliterationRuleData::TransliterationRuleData(const TransliterationRuleData&
     }
     // Remove the array and exit if memory allocation error occured.
     if (U_FAILURE(status)) {
-        for (int32_t n = i-1; n >= 0; n++) {
+        for (int32_t n = i-1; n >= 0; n--) {
             delete variables[n];
         }
         uprv_free(variables);