Bug 626195 - Hunspell topcrash [@ AffixMgr::suffix_check ]. r=ehsan, a=blocking-final+

--HG--
extra : rebase_source : 0de9e63da54030544a4e667eb6d32988d688f97a
This commit is contained in:
Németh László 2011-02-02 13:42:46 -05:00
parent 727c1bc347
commit b0453d9ad0
2 changed files with 9 additions and 5 deletions

View File

@ -36,7 +36,7 @@
******* END LICENSE BLOCK *******
Hunspell Version: 1.2.12
Additional Patches: 583582
Additional Patches: 583582, 586671, 586686, 603311, 617953, 626195
Hunspell Author: László Németh
MySpell Author: Kevin Hendricks & David Einstein

View File

@ -2476,8 +2476,9 @@ struct hentry * AffixMgr::suffix_check (const char * word, int len,
}
se = se->getNext();
}
// now handle the general case
if (len == 0) return NULL; // FULLSTRIP
unsigned char sp = *((const unsigned char *)(word + len - 1));
SfxEntry * sptr = sStart[sp];
@ -2543,8 +2544,9 @@ struct hentry * AffixMgr::suffix_check_twosfx(const char * word, int len,
}
se = se->getNext();
}
// now handle the general case
if (len == 0) return NULL; // FULLSTRIP
unsigned char sp = *((const unsigned char *)(word + len - 1));
SfxEntry * sptr = sStart[sp];
@ -2605,8 +2607,9 @@ char * AffixMgr::suffix_check_twosfx_morph(const char * word, int len,
}
se = se->getNext();
}
// now handle the general case
if (len == 0) return NULL; // FULLSTRIP
unsigned char sp = *((const unsigned char *)(word + len - 1));
SfxEntry * sptr = sStart[sp];
@ -2711,8 +2714,9 @@ char * AffixMgr::suffix_check_morph(const char * word, int len,
}
se = se->getNext();
}
// now handle the general case
if (len == 0) return NULL; // FULLSTRIP
unsigned char sp = *((const unsigned char *)(word + len - 1));
SfxEntry * sptr = sStart[sp];