(svn r24915) -Fix: Several out-of-bounds reads

This commit is contained in:
smatz
2013-01-14 21:16:56 +00:00
parent cdd76434c6
commit 7c81c9111c
4 changed files with 9 additions and 7 deletions

View File

@@ -2063,12 +2063,12 @@ class LanguagePackGlyphSearcher : public MissingGlyphSearcher {
{
if (this->i >= TAB_COUNT) return NULL;
const char *ret = _langpack_offs[_langtab_start[i] + j];
const char *ret = _langpack_offs[_langtab_start[this->i] + this->j];
this->j++;
while (this->j >= _langtab_num[this->i] && this->i < TAB_COUNT) {
i++;
j = 0;
while (this->i < TAB_COUNT && this->j >= _langtab_num[this->i]) {
this->i++;
this->j = 0;
}
return ret;