usp10: Correct buffer reading overrun.

Found by Dan Kegel using valgrind.
This commit is contained in:
Aric Stewart 2011-10-14 08:24:58 -05:00 committed by Alexandre Julliard
parent b9b24bdf51
commit 85d33f4139
1 changed files with 2 additions and 0 deletions

View File

@ -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, &center, index, lex);
if (next != -1)
{