usp10: Correct buffer reading overrun.
Found by Dan Kegel using valgrind.
This commit is contained in:
parent
b9b24bdf51
commit
85d33f4139
|
@ -333,6 +333,8 @@ void Indic_ReorderCharacters( HDC hdc, SCRIPT_ANALYSIS *psa, ScriptCache* psc, L
|
|||
while((next < cChar) && lex(input[next]) == lex_Generic)
|
||||
next++;
|
||||
index = next;
|
||||
if (next >= cChar)
|
||||
break;
|
||||
next = Indic_process_next_syllable(input, cChar, 0, ¢er, index, lex);
|
||||
if (next != -1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue