mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-2404 handle empty extension toU tables
X-SVN-Rev: 13602
This commit is contained in:
parent
4ecafa2bfe
commit
1b9bda0c87
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ ucnv_extMatchToU(const int32_t *cx, int8_t sisoState,
|
|||
int32_t i, j, index, length, matchLength;
|
||||
uint8_t b;
|
||||
|
||||
if(cx==NULL) {
|
||||
if(cx==NULL || cx[UCNV_EXT_TO_U_LENGTH]<=0) {
|
||||
return 0; /* no extension data, no match */
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue