Aric Stewart : usp10: Correct access to -1 index of array.
Alexandre Julliard
julliard at winehq.org
Mon Mar 25 14:19:38 CDT 2013
Module: wine
Branch: master
Commit: e909665db34b44c127c5ecefdfbd2991af5d2029
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e909665db34b44c127c5ecefdfbd2991af5d2029
Author: Aric Stewart <aric at codeweavers.com>
Date: Mon Mar 18 11:21:15 2013 -0500
usp10: Correct access to -1 index of array.
Issue found by Phil Krylov.
---
dlls/usp10/usp10.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c
index bc48ecd..878c39f 100644
--- a/dlls/usp10/usp10.c
+++ b/dlls/usp10/usp10.c
@@ -1341,7 +1341,7 @@ static HRESULT _ItemizeInternal(const WCHAR *pwcInChars, int cInChars,
if (original == Script_Punctuation2)
break;
}
- if (scriptInformation[scripts[j]].props.fComplex || asian)
+ if (j >= 0 && (scriptInformation[scripts[j]].props.fComplex || asian))
scripts[i] = scripts[j];
}
}
More information about the wine-cvs
mailing list