Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215759

[test] java/math/BigInteger/ModPow.java can throw an ArithmeticException

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 13
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b02

      Description

      The modulus created at line 36 is in the interval [0, 2^800) and so can take on the value zero although this is highly unlikely. It is used as the modulus parameter to modPow() at line 42 which will throw an ArithmeticException if the modulus is non-positive.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bpb Brian Burkhalter
                Reporter:
                bpb Brian Burkhalter
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: