From fb71f7550a2865c97466bb69128ced8b36096f11 Mon Sep 17 00:00:00 2001 From: "Nakasaka, Masato" Date: Thu, 12 Mar 2026 01:10:10 -0700 Subject: [PATCH] fix iterator::end() dereference --- common/regex-partial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/regex-partial.cpp b/common/regex-partial.cpp index e667a209e9..bd9034e931 100644 --- a/common/regex-partial.cpp +++ b/common/regex-partial.cpp @@ -102,7 +102,7 @@ std::string regex_to_reversed_partial_regex(const std::string & pattern) { auto is_star = *it == '*'; ++it; if (is_star) { - if (*it == '?') { + if (it != end && *it == '?') { ++it; } }