From c8e21a919640f4ea929e9cd75b5bb95c36d4b87d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Kubern=C3=A1t?= Date: Mon, 21 Oct 2024 15:49:46 +0200 Subject: [PATCH] core/utils: Fix comparing iterators from different instances --- libshvcore/src/utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libshvcore/src/utils.cpp b/libshvcore/src/utils.cpp index 6dcd93b13..2df680d03 100644 --- a/libshvcore/src/utils.cpp +++ b/libshvcore/src/utils.cpp @@ -191,7 +191,7 @@ StringViewList utils::split(StringView strv, char delim, char quote, SplitBehavi ret.push_back(token); } } - if(token.end() >= strv.end()) + if(token.data() + token.size() >= strv.data() + strv.size()) break; strv = strv.substr(token.length() + 1); }