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

Incorrect arguments to sizeof in DomainSocket.c

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6.0
    • 2.8.0, 3.0.0-alpha1
    • native
    • 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

            malcolm kavalsky Malcolm Kavalsky
            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