Aric Stewart : usp10: Correct read overflow in ScriptBreak found by Valgrind.
Alexandre Julliard
julliard at winehq.org
Wed Oct 19 14:05:26 CDT 2011
Module: wine
Branch: master
Commit: 250a132545a9704b0dff98bb77b14093f9ed2d1a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=250a132545a9704b0dff98bb77b14093f9ed2d1a
Author: Aric Stewart <aric at codeweavers.com>
Date: Wed Oct 19 12:34:26 2011 -0500
usp10: Correct read overflow in ScriptBreak found by Valgrind.
---
dlls/usp10/breaking.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/usp10/breaking.c b/dlls/usp10/breaking.c
index 144da37..3efc3da 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);
More information about the wine-cvs
mailing list