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

Avoid possible overflow in org.apache.hadoop.util.bloom.BloomFilter#getNBytes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.2
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha1
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Current implementation:
      return (vectorSize + 7) / 8;
      when vectorSize is 2147483647´╝łthe max value of Int), error :"java.lang.NegativeArraySizeException" will report
      the implementation might be changed
      return (int)(((long)vectorSize + 7) / 8);

        Attachments

        1. HADOOP-13202.03.patch
          2 kB
          Kai Sasaki
        2. HADOOP-13202.02.patch
          2 kB
          Kai Sasaki
        3. HADOOP-13202.01.patch
          2 kB
          Kai Sasaki

          Activity

            People

            • Assignee:
              lewuathe Kai Sasaki
              Reporter:
              bing zhengbing li
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

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