mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Add missing initialisation of term->osc_strlen.
An uninitialised value could have got as far as do_osc() via the relatively recent code path for early termination of an OSC before it's fully set up.
This commit is contained in:
parent
bdb3ac9f3b
commit
a7106d8eb2
@ -4022,6 +4022,7 @@ static void term_out(Terminal *term, bool called_from_term_data)
|
|||||||
/* Compatibility is nasty here, xterm, linux, decterm yuk! */
|
/* Compatibility is nasty here, xterm, linux, decterm yuk! */
|
||||||
compatibility(OTHER);
|
compatibility(OTHER);
|
||||||
term->termstate = SEEN_OSC;
|
term->termstate = SEEN_OSC;
|
||||||
|
term->osc_strlen = 0;
|
||||||
term->esc_args[0] = 0;
|
term->esc_args[0] = 0;
|
||||||
term->esc_nargs = 1;
|
term->esc_nargs = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user