JDK-8246282 : [REDO] JDK-8245121 (bf) XBuffer.put(Xbuffer src) can give unexpected result when storage overlaps
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2020-06-01
  • Updated: 2024-10-17
  • Resolved: 2020-06-04
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.
JDK 15
15 b27Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
The fix for JDK-8245121 overlooked the case where the src parameter is neither direct nor heap. The base address of src is therefore null and an access violation will occur. This can only happen at present if when 'this' is a non read-only CharBuffer and src is a StringCharBuffer.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/d9485795ef99 User: bpb Date: 2020-06-04 18:40:29 +0000
04-06-2020