From 18a5835affc3fef58f673a8feeb128cf4132525e Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 10 Jun 2022 11:55:30 +0000 Subject: [PATCH] Ignore OSC if the first argument is not properly terminated. --- input.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/input.c b/input.c index fa9dfcdf..05654124 100644 --- a/input.c +++ b/input.c @@ -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++;