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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.2
    • 2.8.0, 2.7.4, 3.0.0-alpha1
    • util
    • None
    • 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.01.patch
          2 kB
          Kai
        2. HADOOP-13202.02.patch
          2 kB
          Kai
        3. HADOOP-13202.03.patch
          2 kB
          Kai

        Activity

          People

            lewuathe Kai
            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