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

java.lang.Bignum.remainder() may throw NegativeArraySizeException

XMLWordPrintable

    • 1.1
    • sparc
    • solaris_2.5
    • Not verified

      ===== Here is the minimized test demonstrating the bug =====
      import java.lang.Bignum;
      class java_lang_Bignum_remainder {

        public static void main(String args[]) {
          Bignum b=new Bignum("-912098539475.412556321");
          System.out.println(Bignum.ZERO.remainder(b));
        }
      }
      ===== Here is the output of the test =====
      java.lang.NegativeArraySizeException
      at java.lang.Bignum._intDivide(Bignum.java)
      at java.lang.Bignum.remainder(Bignum.java)
      at java_lang_Bignum_remainder.main(java_lang_Bignum_remainder.java:6)

            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: