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

SIGSEGV in update(null, off, len) call

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.2
    • 1.1.7, 1.1.8
    • core-libs
    • None
    • 1.2.2
    • sparc
    • solaris_2.5
    • Verified



      Name: vsR10029 Date: 01/21/2001


      This bug is filed only for tracking purposes to exclude tests from
      TCKs for jdk1.1*-based products, the fix has already been integrated
      in jdk1.2, so feel free to close it as such.

      SIGSEGV happens in update(null, off, len) call instead of a proper
      exception being thrown.
      To reproduce run the code example:
      ---------------- TestAdler32.java ---------------
      import java.util.zip.*;

      public class TestAdler32 {

          private final byte orig[] = {
              65, 2, 15, 51, 39, 81, 27, 21, 115, 38, 53,
              22, 38, 89, 75, 29, 38, 27, 120, 15, 68
              };

          public static void main(String argv[]) {
              TestAdler32 test = new TestAdler32();
              test.Adler320002();
          }

          public void Adler320002() {
              Adler32 adler32 = new Adler32();

              try {
                  adler32.update(null, 0, orig.length);
              } catch (NullPointerException e) {
                  System.out.println("OKAY");
                  return;
              }
              System.out.println("NullPointerException expected.");
          }
      }
      ----------------------------------------------------


      ======================================================================

            kkladkosunw Konstantin Kladko (Inactive)
            visaenko Vasily Isaenko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: