You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2022/06/15 22:37:34 UTC

[trafficserver] branch 9.2.x updated: Modifying array outside bounds (#8806)

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

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


The following commit(s) were added to refs/heads/9.2.x by this push:
     new c7634d3dd Modifying array outside bounds (#8806)
c7634d3dd is described below

commit c7634d3dd91b5efcac5d6716ab3bbc410739efc0
Author: Bryan Call <bc...@apache.org>
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 5547f9681..095672c9b 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];