This is an automated email from the ASF dual-hosted git repository.
cmcfarlen 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 831678deeb Fix coverity complaint #1550451 (#11663)
831678deeb is described below
commit 831678deeb8135d2745e808f31aee545e528a2dd
Author: Chris McFarlen <[email protected]>
AuthorDate: Mon Aug 19 11:49:01 2024 -0500
Fix coverity complaint #1550451 (#11663)
Co-authored-by: Chris McFarlen <[email protected]>
---
include/tsutil/StringConvert.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/tsutil/StringConvert.h b/include/tsutil/StringConvert.h
index a4339aeeb7..358c8f17bf 100644
--- a/include/tsutil/StringConvert.h
+++ b/include/tsutil/StringConvert.h
@@ -45,7 +45,7 @@ hex(const std::string_view input)
result.resize(input.size() * 2);
char *p = result.data();
- char *end = result.data() + result.size();
+ char *end = p + result.size();
for (unsigned char x : input) {
if (x < 0x10) {
*p++ = '0';