mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-19 03:58:05 -05:00
We shouldn't reference off the end of the display line when checking
for UCSWIDE. Thanks Jacob, for catching this with valgrind. [originally from svn r4338]
This commit is contained in:
parent
d8f8c3c3bf
commit
deaeb2a287
@ -3573,7 +3573,8 @@ static void do_paint(Terminal *term, Context ctx, int may_optimise)
|
|||||||
}
|
}
|
||||||
tattr |= (tchar & CSET_MASK);
|
tattr |= (tchar & CSET_MASK);
|
||||||
tchar &= CHAR_MASK;
|
tchar &= CHAR_MASK;
|
||||||
if ((d[1] & (CHAR_MASK | CSET_MASK)) == UCSWIDE)
|
if (j < term->cols-1 &&
|
||||||
|
(d[1] & (CHAR_MASK | CSET_MASK)) == UCSWIDE)
|
||||||
tattr |= ATTR_WIDE;
|
tattr |= ATTR_WIDE;
|
||||||
|
|
||||||
/* Video reversing things */
|
/* Video reversing things */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user