diff options
author | nicm <nicm> | 2022-06-10 11:55:30 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-06-10 11:55:30 +0000 |
commit | 18a5835affc3fef58f673a8feeb128cf4132525e (patch) | |
tree | 93750e490380df055cda35da8cf998cb8e1d8877 | |
parent | ccc9dc3bb49ac258c856d8478346b4ce829b188e (diff) | |
download | rtmux-18a5835affc3fef58f673a8feeb128cf4132525e.tar.gz rtmux-18a5835affc3fef58f673a8feeb128cf4132525e.tar.bz2 rtmux-18a5835affc3fef58f673a8feeb128cf4132525e.zip |
Ignore OSC if the first argument is not properly terminated.
-rw-r--r-- | input.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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++; |