From 785d9d9521fec575447c9530f0d6c6e8e54f3825 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 8 Apr 2024 15:27:08 +0100 Subject: [PATCH] config: verify string length in wrv2 before calling back ref #5431 --- src/config/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index f3fd9b7f..2eafc892 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -2084,7 +2084,7 @@ std::optional CConfigManager::handleWindowRuleV2(const std::string& result = removeBeginEndSpacesTabs(result); - if (result.back() == ',') + if (!result.empty() && result.back() == ',') result.pop_back(); return result;