Blob Blame History Raw
--- hunspell-1.2.14/src/hunspell/affixmgr.cxx	2011-01-06 11:48:34.000000000 +0000
+++ hunspell-1.2.15/src/hunspell/affixmgr.cxx	2011-01-26 09:18:19.000000000 +0000
@@ -2425,6 +2425,7 @@
     }
   
     // now handle the general case
+    if (len == 0) return NULL; // FULLSTRIP
     unsigned char sp = *((const unsigned char *)(word + len - 1));
     SfxEntry * sptr = (SfxEntry *) sStart[sp];
 
@@ -2492,6 +2493,7 @@
     }
   
     // now handle the general case
+    if (len == 0) return NULL; // FULLSTRIP
     unsigned char sp = *((const unsigned char *)(word + len - 1));
     SfxEntry * sptr = (SfxEntry *) sStart[sp];
 
@@ -2554,6 +2556,7 @@
     }
   
     // now handle the general case
+    if (len == 0) return NULL; // FULLSTRIP
     unsigned char sp = *((const unsigned char *)(word + len - 1));
     SfxEntry * sptr = (SfxEntry *) sStart[sp];
 
@@ -2660,6 +2663,7 @@
     }
   
     // now handle the general case
+    if (len == 0) return NULL; // FULLSTRIP
     unsigned char sp = *((const unsigned char *)(word + len - 1));
     SfxEntry * sptr = (SfxEntry *) sStart[sp];