X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/374ca955a76ecab1204ca8bfa63ff9238d998416..ef6cf650f4a75c3f97de06b51fa104f2069b9ea2:/icuSources/layout/CoverageTables.cpp diff --git a/icuSources/layout/CoverageTables.cpp b/icuSources/layout/CoverageTables.cpp index 3b8cd5b3..e5f1597f 100644 --- a/icuSources/layout/CoverageTables.cpp +++ b/icuSources/layout/CoverageTables.cpp @@ -1,6 +1,6 @@ /* * - * (C) Copyright IBM Corp. 1998-2004 - All Rights Reserved + * (C) Copyright IBM Corp. 1998-2006 - All Rights Reserved * */ @@ -48,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; }