Import Wine commit:
- bfb7e167cb399dbba0a889b797bc11ece8b9e687, Check bounds before dereferencing.

svn path=/trunk/; revision=71235
This commit is contained in:
Pierre Schweitzer 2016-05-02 17:45:42 +00:00
parent be41ea660b
commit 9756d84f6c

View file

@ -299,7 +299,7 @@ static INT EDIT_WordBreakProc(EDITSTATE *es, LPWSTR s, INT index, INT count, INT
case WB_RIGHT:
if (!count)
break;
while (s[index] && index < count && !es->logAttr[index].fSoftBreak)
while (index < count && s[index] && !es->logAttr[index].fSoftBreak)
index++;
ret = index;
break;