Uploaded image for project: 'Slider'
  1. Slider
  2. SLIDER-1157

Code issues - integer handling issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Slider 0.91
    • None
    • other
    • None

    Description

      Following 2 issues needs to be addressed -

      slider-core/src/main/java/org/apache/slider/core/conf/MapOperations.java

      325    long totalMinutes = days * 24 * 60 + hours * 24 + minutes;
      

      overflow_before_widen: Potentially overflowing expression hours * 24 with type int (32 bits, signed) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type long (64 bits, signed)

      slider-core/src/main/java/org/apache/slider/client/SliderClient.java

      1709        if (clusterComponentInstances
      1710            .get(clientComponentInstanceEntry.getKey()) == clientComponentInstanceEntry
      1711            .getValue()) {
      

      defect: Suspicious comparison of Integer references

      Attachments

        1. SLIDER-1157.01.patch
          2 kB
          Gour Saha

        Activity

          People

            gsaha Gour Saha
            gsaha Gour Saha
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: