1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 01:18: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:
Simon Tatham 2022-10-23 17:43:10 +01:00
parent bdb3ac9f3b
commit a7106d8eb2

View File

@ -4022,6 +4022,7 @@ static void term_out(Terminal *term, bool called_from_term_data)
/* Compatibility is nasty here, xterm, linux, decterm yuk! */
compatibility(OTHER);
term->termstate = SEEN_OSC;
term->osc_strlen = 0;
term->esc_args[0] = 0;
term->esc_nargs = 1;
break;