hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From templ...@apache.org
Subject hadoop git commit: YARN-5736 Addendum. Fixes segfault due to unterminated string. (Contributed by Miklos Szegedi via Daniel Templeton)
Date Tue, 15 Nov 2016 21:03:50 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 4fcea8a0c -> 264ddb13f


YARN-5736 Addendum. Fixes segfault due to unterminated string. (Contributed by Miklos Szegedi
via Daniel Templeton)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/264ddb13
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/264ddb13
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/264ddb13

Branch: refs/heads/trunk
Commit: 264ddb13ff7455282fb640b6ff6c565adddea44e
Parents: 4fcea8a
Author: Daniel Templeton <templedf@apache.org>
Authored: Tue Nov 15 13:01:57 2016 -0800
Committer: Daniel Templeton <templedf@apache.org>
Committed: Tue Nov 15 13:01:57 2016 -0800

----------------------------------------------------------------------
 .../src/main/native/container-executor/impl/configuration.c         | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/264ddb13/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c
index 8da7d24..a6d7a9c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/native/container-executor/impl/configuration.c
@@ -156,6 +156,7 @@ char* trim(char* input)
     }
 
     strncpy(ret, val_begin, val_end - val_begin);
+    ret[val_end - val_begin] = '\0';
     return ret;
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message