Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-11848

Incorrect arguments to sizeof in DomainSocket.c

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: native
    • Labels:
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      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));

        Attachments

        1. HADOOP-11848.001.patch
          0.7 kB
          Malcolm Kavalsky

          Activity

            People

            • Assignee:
              malcolm kavalsky Malcolm Kavalsky
              Reporter:
              malcolm kavalsky Malcolm Kavalsky
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified