mirror of
https://github.com/tmux/tmux.git
synced 2024-12-25 19:08:58 +00:00
Ignore OSC if the first argument is not properly terminated.
This commit is contained in:
parent
ccc9dc3bb4
commit
18a5835aff
2
input.c
2
input.c
@ -2292,6 +2292,8 @@ input_exit_osc(struct input_ctx *ictx)
|
|||||||
option = 0;
|
option = 0;
|
||||||
while (*p >= '0' && *p <= '9')
|
while (*p >= '0' && *p <= '9')
|
||||||
option = option * 10 + *p++ - '0';
|
option = option * 10 + *p++ - '0';
|
||||||
|
if (*p != ';' && *p != '\0')
|
||||||
|
return;
|
||||||
if (*p == ';')
|
if (*p == ';')
|
||||||
p++;
|
p++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user