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

BigInteger string constructor causes a bus error for long base-16 numbers.

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.1
    • CPU:
      sparc
    • OS:
      solaris_2.5, solaris_2.5.1
    • Verification:
      Not verified

      Description

      The string construtor got BigInteger causes a bus error under common circumstances (a long, base-16 string) at least. Other arguments to the string contructors have not been tested.

      Program that triggers this behavior:

      import java.math.BigInteger;

      public class Test {

          public static void main(String[] args) {

      new BigInteger("fca682ce8e12caba26efccf7110e526db078b05edecb" +
      "cd1eb4a208f3ae1617ae01f35b91a47e6df63413c5e1" +
      "2ed0899bcd132acd50d99151bdc43ee737592e17", 16);
          }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sliangsunw Sheng Liang (Inactive)
              Reporter:
              brenaudsunw Benjamin Renaud (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: