From 2e587b4c5c44408d74c0e08d7276d9186f96f05c Mon Sep 17 00:00:00 2001 From: Damian Meden Date: Fri, 15 Nov 2024 09:53:09 +0000 Subject: [PATCH] Coverity: Fix for CID-1550441 Overflowed constant. --- src/iocore/net/SNIActionPerformer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/iocore/net/SNIActionPerformer.cc b/src/iocore/net/SNIActionPerformer.cc index 3657ca4b3d7..c34cb652ee6 100644 --- a/src/iocore/net/SNIActionPerformer.cc +++ b/src/iocore/net/SNIActionPerformer.cc @@ -269,8 +269,8 @@ TunnelDestination::replace_match_groups(std::string_view dst, const ActionItem:: real_dst += *c; continue; } - const std::size_t group_index = swoc::svtoi(number_str); - if ((group_index - 1) < groups.size()) { + const int group_index = swoc::svtoi(number_str); + if ((group_index - 1) < static_cast(groups.size())) { // place the captured group. real_dst += groups[group_index - 1]; if (is_writing_port) {