]> granicus.if.org Git - icu/commitdiff
ICU-9340 Fix potential out of bound error in ICU4C ISCII converter
authorMichael Ow <mow@svn.icu-project.org>
Tue, 3 Jul 2012 17:51:14 +0000 (17:51 +0000)
committerMichael Ow <mow@svn.icu-project.org>
Tue, 3 Jul 2012 17:51:14 +0000 (17:51 +0000)
X-SVN-Rev: 32021

icu4c/source/common/ucnvisci.c

index b36894849cf17665e8591ca745339b44fc6cef41..fe61d40ac6c34b1d4eceb03192d98dde07e4abd2 100644 (file)
@@ -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){                                         \