hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whe...@apache.org
Subject [52/56] [abbrv] hadoop git commit: HDFS-9116. Suppress false positives from Valgrind on uninitialized variables in tests. Contributed by Haohui Mai.
Date Wed, 07 Oct 2015 07:20:18 GMT
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/3bdf6e41
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3bdf6e41
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3bdf6e41

Branch: refs/heads/HDFS-8707
Commit: 3bdf6e4172e78f7a2c2f91a597cf0b692a1f6cdb
Parents: 5876945
Author: Haohui Mai <wheat9@apache.org>
Authored: Mon Sep 21 11:34:50 2015 -0700
Committer: Haohui Mai <wheat9@apache.org>
Committed: Wed Oct 7 00:17:13 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/3bdf6e41/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)));
   }


Mime
View raw message