From ecf61700ade11d12d916ed0aa5c90c64a4406738 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Wed, 16 Jul 2014 21:04:08 +0000 Subject: [PATCH] ICU-11006 Memory crash/corruption in for loop due to typo in the file (source/i18n/rbt_data.cpp) X-SVN-Rev: 36047 --- icu4c/source/i18n/rbt_data.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/rbt_data.cpp b/icu4c/source/i18n/rbt_data.cpp index bdb7ead8c3b..cb949e541e2 100644 --- a/icu4c/source/i18n/rbt_data.cpp +++ b/icu4c/source/i18n/rbt_data.cpp @@ -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); -- 2.40.0