Repository: hadoop
Updated Branches:
  refs/heads/HDFS-8707 ebaed4bd4 -> 5d912eabe


HDFS-9116. Suppress false positives from Valgrind on uninitialized variables in 
tests. Contributed by Haohui Mai.


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

Branch: refs/heads/HDFS-8707
Commit: 5d912eabe1c01ad39ce60ddd3a0377e22d01c54c
Parents: ebaed4b
Author: Haohui Mai <[email protected]>
Authored: Mon Sep 21 11:34:50 2015 -0700
Committer: Haohui Mai <[email protected]>
Committed: Mon Sep 21 16:34:32 2015 -0700

----------------------------------------------------------------------
 .../src/main/native/libhdfspp/lib/common/sasl_digest_md5.cc        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5d912eab/hadoop-hdfs-project/hadoop-hdfs-client/src/main/native/libhdfspp/lib/common/sasl_digest_md5.cc
----------------------------------------------------------------------
diff --git 
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/native/libhdfspp/lib/common/sasl_digest_md5.cc
 
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/native/libhdfspp/lib/common/sasl_digest_md5.cc
index 6f53e28..3ca8578 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs-client/src/main/native/libhdfspp/lib/common/sasl_digest_md5.cc
+++ 
b/hadoop-hdfs-project/hadoop-hdfs-client/src/main/native/libhdfspp/lib/common/sasl_digest_md5.cc
@@ -93,7 +93,7 @@ size_t DigestMD5Authenticator::NextToken(const std::string 
&payload, size_t off,
 
 void DigestMD5Authenticator::GenerateCNonce() {
   if (!TEST_mock_cnonce_) {
-    char buf[8];
+    char buf[8] = {0,};
     RAND_pseudo_bytes(reinterpret_cast<unsigned char *>(buf), sizeof(buf));
     cnonce_ = Base64Encode(std::string(buf, sizeof(buf)));
   }

Reply via email to