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

Incorrect DerOutputStream putLength method

XMLWordPrintable

    • 1.1.5
    • sparc
    • solaris_2.6
    • Verified


      In sun.security.util:

      DerOutputStream.java:
      ----------------------

      public void putLength (int len) throws IOException{
      ...

      } else if (len < (1 << 16)) {
           write ((byte)0x083);
           write ((byte) (len >> 16));
           write ((byte) (len >> 8));
           write ((byte) len);

      ...
      }

      1<<16 is incorrect.

            hprafullsunw Hemlata Prafullchandra (Inactive)
            mupadhyasunw Mayank Upadhyay (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: