JDK-8274939 : Incorrect size of the pixel storage is used by the robot on macOS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9,11,17,18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2021-10-08
  • Updated: 2022-12-20
  • Resolved: 2022-02-12
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 11 JDK 17 JDK 19
11.0.19Fixed 17.0.4Fixed 19 b10Fixed
Related Reports
Relates :  
Relates :  
Description
On macOS, the robot class prepares the data for pixel storage in some clumsy way so for some scale factors the size of the storage is calculated wrong causes the pixels to be misplaced.
Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1600 Date: 2022-12-17 02:37:20 +0000
18-12-2022

Fix Request (11u) - Justification: The fix for the possible buffer overrun in native code. - Risk Analysis: Low, trivial change of the size used to store the pixels. - Testing: The fix verified by the test, and the jdk_desktop tests are green - PR: https://github.com/openjdk/jdk11u-dev/pull/1600
18-12-2022

Fix Request (17u) - Justification: The fix for the possible buffer overrun in native code. - Risk Analysis: Low, trivial change of the size used to store the pixels. - Testing: The fix verified by the test, and the jdk_desktop tests are green - PR: https://github.com/openjdk/jdk17u-dev/pull/324 The patch from jdk-dev (19) applies cleanly to 17u
31-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk17u-dev/pull/324 Date: 2022-03-31 23:02:10 +0000
31-03-2022

Changeset: eff5dafb Author: Sergey Bylokhov <serb@openjdk.org> Date: 2022-02-12 22:10:11 +0000 URL: https://git.openjdk.java.net/jdk/commit/eff5dafba9f72bd0612357712ffa472ce1c9166a
12-02-2022

the proposed fix is too risky and not appropriate for stabilizing JDK 18, so re-targeted to 19
10-12-2021

this is not a P2 by severity of issue and introduced in JDK 9 years ago
10-12-2021