This is an automated email from the ASF dual-hosted git repository.

bcall pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

commit 7e785535c143843123bf2af1bc6885ea154e28ac
Author: Bryan Call <[email protected]>
AuthorDate: Mon Apr 25 16:04:27 2022 -0700

    Modifying array outside bounds (#8806)
    
    (cherry picked from commit a4920094574dddfd88a6148dd88fd790b82d613b)
---
 tools/http_load/http_load.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/http_load/http_load.c b/tools/http_load/http_load.c
index 8d89962b5..238a77e43 100644
--- a/tools/http_load/http_load.c
+++ b/tools/http_load/http_load.c
@@ -438,7 +438,7 @@ main(int argc, char **argv)
       } else {
         extra_headers = malloc_check(65536);
         strncpy(extra_headers, argv[++argn], 65536 - 1);
-        extra_headers[65536] = '\0';
+        extra_headers[65535] = '\0';
       }
     } else if (strncmp(argv[argn], "-http_version", strlen(argv[argn])) == 0 
&& argn + 1 < argc) {
       http_version = argv[++argn];

Reply via email to