Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C15B618CD7 for ; Wed, 7 Oct 2015 07:19:51 +0000 (UTC) Received: (qmail 94646 invoked by uid 500); 7 Oct 2015 07:19:31 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 94524 invoked by uid 500); 7 Oct 2015 07:19:31 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 91403 invoked by uid 99); 7 Oct 2015 07:19:29 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 07:19:29 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A6660E0BCC; Wed, 7 Oct 2015 07:19:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: wheat9@apache.org To: common-commits@hadoop.apache.org Date: Wed, 07 Oct 2015 07:20:18 -0000 Message-Id: <3dfdc19e070e4904b03a573db44720c3@git.apache.org> In-Reply-To: <9b3adbd3f5ec4dc58b3b72e313831343@git.apache.org> References: <9b3adbd3f5ec4dc58b3b72e313831343@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [52/56] [abbrv] hadoop git commit: HDFS-9116. Suppress false positives from Valgrind on uninitialized variables in tests. Contributed by Haohui Mai. 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 Authored: Mon Sep 21 11:34:50 2015 -0700 Committer: Haohui Mai 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(buf), sizeof(buf)); cnonce_ = Base64Encode(std::string(buf, sizeof(buf))); }