artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
885a5e7
)
Ignore OSC if the first argument is not properly terminated.
author
nicm
<nicm@openbsd.org>
Fri, 10 Jun 2022 11:55:30 +0000
(11:55 +0000)
committer
nicm
<nicm@openbsd.org>
Fri, 10 Jun 2022 11:55:30 +0000
(11:55 +0000)
usr.bin/tmux/input.c
patch
|
blob
|
history
diff --git
a/usr.bin/tmux/input.c
b/usr.bin/tmux/input.c
index
202d9e5
..
add5f4a
100644
(file)
--- a/
usr.bin/tmux/input.c
+++ b/
usr.bin/tmux/input.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: input.c,v 1.20
3 2022/06/09 09:12:55
nicm Exp $ */
+/* $OpenBSD: input.c,v 1.20
4 2022/06/10 11:55:30
nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@
-2292,6
+2292,8
@@
input_exit_osc(struct input_ctx *ictx)
option = 0;
while (*p >= '0' && *p <= '9')
option = option * 10 + *p++ - '0';
+ if (*p != ';' && *p != '\0')
+ return;
if (*p == ';')
p++;