From 0c08c4c3d8f3253bb6fe9c67cf9761c5086f3957 Mon Sep 17 00:00:00 2001 From: totaam Date: Mon, 10 Apr 2023 14:49:42 +0700 Subject: [PATCH] #3820 avoid errors with malformed display names --- xpra/scripts/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpra/scripts/parsing.py b/xpra/scripts/parsing.py index 136507d8e8..f6f1e84ed1 100755 --- a/xpra/scripts/parsing.py +++ b/xpra/scripts/parsing.py @@ -417,7 +417,7 @@ def parse_display_name(error_cb, opts, display_name, cmdline=(), find_session_by psep += ":" pos += 1 scount = 0 - while display_name[pos]=="/" and scount<2: + while pos>len(display_name) and display_name[pos]=="/" and scount<2: psep += "/" pos += 1 scount += 1