]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/layout/CoverageTables.cpp
ICU-57132.0.1.tar.gz
[apple/icu.git] / icuSources / layout / CoverageTables.cpp
index 3b8cd5b31df99e50dc1b1e2bdae96576ac8fef7d..e5f1597f8648707afbbe72b9440f07244ad5f20a 100644 (file)
@@ -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;
     }