From 250a132545a9704b0dff98bb77b14093f9ed2d1a Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Wed, 19 Oct 2011 12:34:26 -0500 Subject: [PATCH] usp10: Correct read overflow in ScriptBreak found by Valgrind. --- dlls/usp10/breaking.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/usp10/breaking.c b/dlls/usp10/breaking.c index 144da375044..3efc3dac553 100644 --- a/dlls/usp10/breaking.c +++ b/dlls/usp10/breaking.c @@ -392,7 +392,7 @@ void BREAK_line(const WCHAR *chars, int count, const SCRIPT_ANALYSIS *sa, SCRIPT debug_output_breaks(break_before,count); /* LB31 */ - for (i = 0; i < count; i++) + for (i = 0; i < count-1; i++) else_break(&break_before[i+1],b_s); debug_output_breaks(break_before,count); -- 2.11.4.GIT