]> 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 ec8b9a5ed9d284d5dec24cdfe54ade3340ff90c3..e5f1597f8648707afbbe72b9440f07244ad5f20a 100644 (file)
@@ -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;
     }