JDK-8230480 : check malloc/calloc results in java.desktop
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-09-03
  • Updated: 2020-10-04
  • Resolved: 2019-09-05
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 13 JDK 14
11.0.10-oracleFixed 13.0.4Fixed 14 b16Fixed
Description
There are a few malloc/calloc calls in the java.desktop native code where the result is not checked; this should be adjusted.
Comments
Fix request (13u): I'd like to port it; patch applies cleanly.
26-05-2020

jdk11u fix request I would like too have the patch in jdk11 too, because the issues addressed are present there too. The patch applies cleanly.
28-11-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/18e7ed2cd7d1 User: psadhukhan Date: 2019-09-25 09:20:40 +0000
25-09-2019

Reviewer was Phil Race, not Roger Riggs (see the link to the mail thread above); by mistake Roger was added in the Reviewed-by info.
05-09-2019

URL: https://hg.openjdk.java.net/jdk/client/rev/18e7ed2cd7d1 User: mbaesken Date: 2019-09-05 12:00:38 +0000
05-09-2019

http://mail.openjdk.java.net/pipermail/2d-dev/2019-September/010252.html
04-09-2019