Commit 250a1325 authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

usp10: Correct read overflow in ScriptBreak found by Valgrind.

parent ed6dea5d
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment