United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7126889 Incorrect SSLEngine debug output
JDK-7126889 : Incorrect SSLEngine debug output

Details
Type:
Bug
Submit Date:
2012-01-04
Status:
Closed
Updated Date:
2013-01-02
Project Name:
JDK
Resolved Date:
2012-02-07
Component:
security-libs
OS:
generic
Sub-Component:
javax.net.ssl
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Backport:

Sub Tasks

Description
See Comments.

                                    

Comments
EVALUATION

See suggested fix.
                                     
2012-01-04
SUGGESTED FIX

diff --git a/src/share/classes/sun/security/ssl/EngineOutputRecord.java b/src/share/classes/sun/security/ssl/EngineOutputRecord.java
--- a/src/share/classes/sun/security/ssl/EngineOutputRecord.java
+++ b/src/share/classes/sun/security/ssl/EngineOutputRecord.java
@@ -257,7 +257,7 @@
         if (engine.needToSplitPayload(writeCipher, protocolVersion)) {
             write(ea, writeMAC, writeCipher, 0x01);
             ea.resetLim();      // reset application data buffer limit
-            length = Math.min(ea.getAppRemaining(),
+            length = Math.min(ea.getAppRemaining() - 0x01,
                         maxDataSizeMinusOneByteRecord);
         } else {
             length = Math.min(ea.getAppRemaining(), maxDataSize);
                                     
2012-01-04
EVALUATION

http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5ee30ab905db
                                     
2012-01-27
http://aurora.ru.oracle.com/functional/faces/RunDetails.xhtml?names=149195.CORELIBS-JDK8-NIGHTLY-JTREG-13

Also checked nightly TL for last 15 days, no failure for this test.
                                     
2013-01-02



Hardware and Software, Engineered to Work Together