From: Markus Scherer Date: Wed, 19 Sep 2018 19:04:17 +0000 (-0700) Subject: ICU-20081 ucase_swap() fix version range check (#151) X-Git-Tag: release-63-rc~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e22adb02d2b90743b87c77e6972de58c45118ba6;p=icu ICU-20081 ucase_swap() fix version range check (#151) --- diff --git a/icu4c/source/tools/toolutil/swapimpl.cpp b/icu4c/source/tools/toolutil/swapimpl.cpp index a9bee15bcf9..5a552c2a209 100644 --- a/icu4c/source/tools/toolutil/swapimpl.cpp +++ b/icu4c/source/tools/toolutil/swapimpl.cpp @@ -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],