X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/layout/CoverageTables.cpp?ds=inline diff --git a/icuSources/layout/CoverageTables.cpp b/icuSources/layout/CoverageTables.cpp index ec8b9a5e..e5f1597f 100644 --- a/icuSources/layout/CoverageTables.cpp +++ b/icuSources/layout/CoverageTables.cpp @@ -1,7 +1,6 @@ /* - * @(#)CoverageTables.cpp 1.5 00/03/15 * - * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved + * (C) Copyright IBM Corp. 1998-2006 - All Rights Reserved * */ @@ -49,6 +48,10 @@ le_int32 CoverageFormat1Table::getGlyphCoverage(LEGlyphID glyphID) const le_uint16 probe = power; le_uint16 index = 0; + if (count == 0) { + return -1; + } + if (SWAPW(glyphArray[extra]) <= ttGlyphID) { index = extra; }