ICU-20081 ucase_swap() fix version range check (#151)

This commit is contained in:
Markus Scherer 2018-09-19 12:04:17 -07:00 committed by GitHub
parent f6c813f6f4
commit 6f9116e4fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -336,7 +336,7 @@ ucase_swap(const UDataSwapper *ds,
((pInfo->formatVersion[0]==1 &&
pInfo->formatVersion[2]==UTRIE_SHIFT &&
pInfo->formatVersion[3]==UTRIE_INDEX_SHIFT) ||
2<=pInfo->formatVersion[0] || pInfo->formatVersion[0]<=4)
2<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=4)
)) {
udata_printError(ds, "ucase_swap(): data format %02x.%02x.%02x.%02x (format version %02x) is not recognized as case mapping data\n",
pInfo->dataFormat[0], pInfo->dataFormat[1],