This is an automated email from the ASF dual-hosted git repository.
lserris 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 561665d582 Coverity 1518564: fix off by one (#10401)
561665d582 is described below
commit 561665d582a956f13bb07c3047778d8f1ca5a0be
Author: Serris Lew <[email protected]>
AuthorDate: Mon Sep 11 14:47:32 2023 -0700
Coverity 1518564: fix off by one (#10401)
Co-authored-by: Serris Lew <[email protected]>
---
plugins/experimental/fq_pacing/fq_pacing.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/experimental/fq_pacing/fq_pacing.cc
b/plugins/experimental/fq_pacing/fq_pacing.cc
index 68663485f9..c91cea4b83 100644
--- a/plugins/experimental/fq_pacing/fq_pacing.cc
+++ b/plugins/experimental/fq_pacing/fq_pacing.cc
@@ -64,7 +64,7 @@ fq_is_default_qdisc()
return 0;
}
- s = TSfread(f, buffer, sizeof(buffer));
+ s = TSfread(f, buffer, sizeof(buffer) - 1);
if (s > 0) {
buffer[s] = 0;
} else {