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

java.lang.Bignum.isProbablePrime() may throw ArrayIndexOutOfBoundsException

    • 1.1
    • sparc
    • solaris_2.5
    • Not verified

      ==== Here is the minimized test demonstrating the bug ====
      import java.lang.Bignum;
      class java_lang_Bignum_isProbablePrime {
        public static void main(String args[]) {
          Bignum b=new Bignum("1");
          System.out.println(b.isProbablePrime());
        }
      }
      ==== Here is the test output ====
      java.lang.ArrayIndexOutOfBoundsException: 1
      at java.lang.Bignum.isProbablePrime0(Bignum.java)
      at java.lang.Bignum.isProbablePrime(Bignum.java)
      at java_lang_Bignum_isProbablePrime.main(java_lang_Bignum_isProbablePrime.java:5)

          Loading...
          Uploaded image for project: 'JDK'
          1. JDK
          2. JDK-4015004

          java.lang.Bignum.isProbablePrime() may throw ArrayIndexOutOfBoundsException

            • 1.1
            • sparc
            • solaris_2.5
            • Not verified

              ==== Here is the minimized test demonstrating the bug ====
              import java.lang.Bignum;
              class java_lang_Bignum_isProbablePrime {
                public static void main(String args[]) {
                  Bignum b=new Bignum("1");
                  System.out.println(b.isProbablePrime());
                }
              }
              ==== Here is the test output ====
              java.lang.ArrayIndexOutOfBoundsException: 1
              at java.lang.Bignum.isProbablePrime0(Bignum.java)
              at java.lang.Bignum.isProbablePrime(Bignum.java)
              at java_lang_Bignum_isProbablePrime.main(java_lang_Bignum_isProbablePrime.java:5)

                    mhapnersunw Mark Hapner (Inactive)
                    mgorshen Mikhail Gorshenev (Inactive)
                    Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                      Created:
                      Updated:
                      Resolved:
                      Imported:
                      Indexed:

                        mhapnersunw Mark Hapner (Inactive)
                        mgorshen Mikhail Gorshenev (Inactive)
                        Votes:
                        0 Vote for this issue
                        Watchers:
                        0 Start watching this issue

                          Created:
                          Updated:
                          Resolved:
                          Imported:
                          Indexed: