You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by dm...@apache.org on 2024/11/18 10:01:29 UTC
(trafficserver) branch master updated: Coverity: Fix for CID-1550441 (#11867)
This is an automated email from the ASF dual-hosted git repository.
dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 32c2f8e547 Coverity: Fix for CID-1550441 (#11867)
32c2f8e547 is described below
commit 32c2f8e5476253c1e5072d65a950a16ec0090683
Author: Damian Meden <dm...@apache.org>
AuthorDate: Mon Nov 18 11:01:23 2024 +0100
Coverity: Fix for CID-1550441 (#11867)
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 3657ca4b3d..c34cb652ee 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<int>(groups.size())) {
// place the captured group.
real_dst += groups[group_index - 1];
if (is_writing_port) {