mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 00:43:32 +00:00
ICU-9340 Fix potential out of bound error in ICU4J ISCII converter
X-SVN-Rev: 32022
This commit is contained in:
parent
04c477d6ff
commit
d98bf1b052
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2008-2011, International Business Machines Corporation and *
|
||||
* Copyright (C) 2008-2012, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -1177,7 +1177,7 @@ class CharsetISCII extends CharsetICU {
|
|||
targetUniChar = toUnicodeTable[sourceChar];
|
||||
/* is the code point valid in current script? */
|
||||
if (sourceChar > ASCII_END &&
|
||||
(validityTable[(short)targetUniChar & UConverterConstants.UNSIGNED_BYTE_MASK] & 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) {
|
||||
targetUniChar = UConverterConstants.missingCharMarker;
|
||||
|
|
Loading…
Add table
Reference in a new issue