RFR: 8331682: Slow networks/Impatient clients can potentially send unencrypted TLSv1.3 alerts that won't parse on the server [v26]

Artur Barashev abarashev at openjdk.org
Mon Nov 4 17:15:34 UTC 2024


On Fri, 1 Nov 2024 22:41:32 GMT, Bradford Wetmore <wetmore at openjdk.org> wrote:

>> Artur Barashev has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove logging
>
> src/java.base/share/classes/sun/security/ssl/SSLCipher.java line 1864:
> 
>> 1862:                     // Check for unexpected plaintext alert.
>> 1863:                     if (contentType == ContentType.ALERT.id
>> 1864:                         && bb.remaining() == 2) {
> 
> Minor nit.  `if` continuation lines should be 8 spaces.  e.g.
> 
>     if (this > that 
>             && big > little) {
>         doSomethingElse();
>     }
> 
> ([Oracle Java Code Style Guidelines](https://www.oracle.com/technetwork/java/codeconventions-150003.pdf) Section 4:  `Line wrapping for if statements should generally use the 8-space rule, since conventional (4
> space) indentation makes seeing the body difficult.`)

Done

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/21043#discussion_r1828087604


More information about the security-dev mailing list