You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2016/02/12 03:00:20 UTC

[jira] [Updated] (HADOOP-11848) Incorrect arguments to sizeof in DomainSocket.c

     [ https://issues.apache.org/jira/browse/HADOOP-11848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allen Wittenauer updated HADOOP-11848:
--------------------------------------
    Release Note:   (was: Small one-line bug fix)

> Incorrect arguments to sizeof in DomainSocket.c
> -----------------------------------------------
>
>                 Key: HADOOP-11848
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11848
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: native
>    Affects Versions: 2.6.0
>            Reporter: Malcolm Kavalsky
>            Assignee: Malcolm Kavalsky
>              Labels: native
>             Fix For: 2.8.0
>
>         Attachments: HADOOP-11848.001.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Length of buffer to be zeroed using sizeof , should not use the address of the structure rather the structure itself.
> DomainSocket.c line 156
> Replace current:
> memset(&addr,0,sizeof,(&addr));
> With:
> memset(&addr, 0, sizeof(addr));



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)