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

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

    XMLWordPrintable

Details

    • b02

    Backports

      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

                bpb Brian Burkhalter
                bpb Brian Burkhalter
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: