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

Incorrect DerOutputStream putLength method

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1.5
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Verified

      Description


      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: