ICU-9085 Fix infinite loop error in compound text converter in ICU4J
X-SVN-Rev: 31299
This commit is contained in:
parent
4fc83fb80c
commit
42208f627b
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
* Copyright (C) 2010-2011, International Business Machines Corporation and *
|
* Copyright (C) 2010-2012, International Business Machines Corporation and *
|
||||||
* others. All Rights Reserved. *
|
* others. All Rights Reserved. *
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
*/
|
*/
|
||||||
@ -535,6 +535,9 @@ class CharsetCompoundText extends CharsetICU {
|
|||||||
}
|
}
|
||||||
if (tmpState < 0) {
|
if (tmpState < 0) {
|
||||||
err = CoderResult.malformedForLength(1);
|
err = CoderResult.malformedForLength(1);
|
||||||
|
if (this.toULength == 0) {
|
||||||
|
source.get(); /* skip over the 0x1b byte */
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:b725498307fbdcaba54c87a108be02c1c1913756af500246112513f32b9901d3
|
oid sha256:9189e830f39d6cfb36008f3d389e784a3f0fa211ddaf01d6f4503188a2c46d55
|
||||||
size 719229
|
size 719348
|
||||||
|
Loading…
Reference in New Issue
Block a user