JDK-8234968 : check calloc rv in libinstrument InvocationAdapter
  • Type: Bug
  • Component: core-svc
  • Sub-Component: java.lang.instrument
  • Affected Version: 11,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-11-28
  • Updated: 2020-06-08
  • Resolved: 2019-12-16
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 15
11.0.8Fixed 13.0.4Fixed 15 b02Fixed
Description
There is an unchecked return value of calloc in InvocationAdapter. This should be adjusted.
Comments
Fix request (13u) I would like to downport this. Applies clean. Tier1 passes.
04-06-2020

jdk11 backport request I would like to have the patch in jdk11 as well, because the issue is present there too. The patch applies cleanly.
21-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/b9a8f588e55a User: mbaesken Date: 2019-12-16 08:21:08 +0000
16-12-2019