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

SNIHostName should check if the encoded hostname conform to RFC 3490

    XMLWordPrintable

Details

    Description

      The constructor SNIHostName(byte[] encoded) should check if the encoded hostname conform to RFC 3490.

      @@ -173,7 +173,8 @@ public final class SNIHostName extends SNIServerName {
                           .onUnmappableCharacter(CodingErrorAction.REPORT);
       
                   this.hostname = IDN.toASCII(
      - decoder.decode(ByteBuffer.wrap(encoded)).toString());
      + decoder.decode(ByteBuffer.wrap(encoded)).toString(), IDN.USE_STD3_ASCII_RULES);

      Attachments

        Issue Links

          Activity

            People

              jjiang John Jiang
              jjiang John Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: