Repository: hadoop Updated Branches: refs/heads/trunk 12f4df043 -> a3b1d8c90
HADOOP-11848. Incorrect arguments to sizeof in DomainSocket.c (Malcolm Kavalsky via Colin P. McCabe) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/a3b1d8c9 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/a3b1d8c9 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/a3b1d8c9 Branch: refs/heads/trunk Commit: a3b1d8c90288a6237089a98d4a81c25f44aedb2c Parents: 12f4df0 Author: Colin Patrick Mccabe <[email protected]> Authored: Wed Apr 22 11:27:38 2015 -0700 Committer: Colin Patrick Mccabe <[email protected]> Committed: Wed Apr 22 12:36:37 2015 -0700 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/a3b1d8c9/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 0ba1cdd..1234ea0 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -536,6 +536,9 @@ Release 2.8.0 - UNRELEASED HADOOP-11859. PseudoAuthenticationHandler fails with httpcomponents v4.4. (Eugene Koifman via jitendra) + HADOOP-11848. Incorrect arguments to sizeof in DomainSocket.c (Malcolm + Kavalsky via Colin P. McCabe) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/a3b1d8c9/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c index 48c4252..55ab0c3 100644 --- a/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c +++ b/hadoop-common-project/hadoop-common/src/main/native/src/org/apache/hadoop/net/unix/DomainSocket.c @@ -153,7 +153,7 @@ static jthrowable setup(JNIEnv *env, int *ofd, jobject jpath, int doConnect) terror(ret)); goto done; } - memset(&addr, 0, sizeof(&addr)); + memset(&addr, 0, sizeof(addr)); addr.sun_family = AF_UNIX; cpath = (*env)->GetStringUTFChars(env, jpath, NULL); if (!cpath) {
