From: Michael Ow Date: Tue, 3 Jul 2012 17:51:14 +0000 (+0000) Subject: ICU-9340 Fix potential out of bound error in ICU4C ISCII converter X-Git-Tag: milestone-59-0-1~3731 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04c477d6ff4a2da2b0f673825768fb63811c37d9;p=icu ICU-9340 Fix potential out of bound error in ICU4C ISCII converter X-SVN-Rev: 32021 --- diff --git a/icu4c/source/common/ucnvisci.c b/icu4c/source/common/ucnvisci.c index b36894849cf..fe61d40ac6c 100644 --- a/icu4c/source/common/ucnvisci.c +++ b/icu4c/source/common/ucnvisci.c @@ -1140,7 +1140,7 @@ static const uint16_t lookupTable[][2]={ targetUniChar = toUnicodeTable[(sourceChar)] ; \ /* is the code point valid in current script? */ \ if(sourceChar> ASCII_END && \ - (validityTable[(targetUniChar & 0x00FF)] & data->currentMaskToUnicode)==0){ \ + (validityTable[(targetUniChar & 0x7F)] & data->currentMaskToUnicode)==0){ \ /* Vocallic RR is assigne in ISCII Telugu and Unicode */ \ if(data->currentDeltaToUnicode!=(TELUGU_DELTA) || \ targetUniChar!=VOCALLIC_RR){ \