ICU-2404 handle empty extension toU tables

X-SVN-Rev: 13602
This commit is contained in:
Markus Scherer 2003-11-06 17:02:50 +00:00
parent 4ecafa2bfe
commit 1b9bda0c87

View file

@ -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 */
}