Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6641

[classlib][luni] FloatParser returns wrong value and uses 1GB memory and 100% cpu

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0M14
    • Fix Version/s: 5.0M16
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      all
    • Patch Info:
      Patch Available

      Description

      Float.valueOf("320.0E+2147483647") will return 32.0 and Float.valueOf("-1.4E-2147483314") will use 1GB memory, 100% cpu and hang. RI will return infinity and -0.0

        Attachments

        1. HARMONY-6641.diff
          7 kB
          Shi Jun Zhang
        2. HARMONY-6641-v2.diff
          7 kB
          Shi Jun Zhang

          Activity

            People

            • Assignee:
              hindessm Mark Hindess
              Reporter:
              zhangshj Shi Jun Zhang
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: