JDK-7126889 : Incorrect SSLEngine debug output
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.net.ssl
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-01-04
  • Updated: 2013-09-12
  • Resolved: 2012-02-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6 JDK 7 JDK 8 Other
5.0u35,OpenJDK6Fixed 6u32Fixed 7u4Fixed 8 b25Fixed OpenJDK6Fixed
Description
See Comments.

Comments
EVALUATION http://hg.openjdk.java.net/jdk8/tl/jdk/rev/5ee30ab905db
27-01-2012

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);
04-01-2012

EVALUATION See suggested fix.
04-01-2012