ICU-544 safer handling of u+303e
X-SVN-Rev: 2763
This commit is contained in:
parent
2be0117179
commit
2aad0e433c
@ -64,8 +64,8 @@ incFourGB18030(unsigned char bytes[4]) {
|
||||
static void
|
||||
incSkipFourGB18030(unsigned char bytes[4]) {
|
||||
incFourGB18030(bytes);
|
||||
if(0==memcmp(bytes, skip303eBytes, 4)) {
|
||||
/* make sure to skip the mismapped sequence */
|
||||
if(0==memcmp(bytes, skip303eBytes, 4) && flags[0x303e]==1) {
|
||||
/* make sure to skip the mismapped sequence if the data correctly maps U+303e==GB+a989 */
|
||||
incFourGB18030(bytes);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user