You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2015/01/02 22:08:59 UTC

[5/7] trafficserver git commit: Prevent out of bounds write in argument parsing

Prevent out of bounds write in argument parsing

Coverity CID #1254806


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/15ae8f09
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/15ae8f09
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/15ae8f09

Branch: refs/heads/master
Commit: 15ae8f09064eae19ab0aebe44842fc209e63ab6d
Parents: 79181c0
Author: James Peach <jp...@apache.org>
Authored: Mon Dec 29 21:45:10 2014 -0800
Committer: James Peach <jp...@apache.org>
Committed: Fri Jan 2 12:45:52 2015 -0800

----------------------------------------------------------------------
 lib/ts/ink_args.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/15ae8f09/lib/ts/ink_args.cc
----------------------------------------------------------------------
diff --git a/lib/ts/ink_args.cc b/lib/ts/ink_args.cc
index 57f82c8..87bd114 100644
--- a/lib/ts/ink_args.cc
+++ b/lib/ts/ink_args.cc
@@ -68,8 +68,8 @@ append_file_argument(const char * arg)
     if (n_file_arguments >= countof(file_arguments)) {
       ink_fatal("too many files");
     }
+
     file_arguments[n_file_arguments++] = arg;
-    file_arguments[n_file_arguments] = NULL;
 }
 
 static void