JDK-8235489 : handle return values of sscanf calls in hotspot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 14
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2019-12-06
  • Updated: 2022-06-27
  • Resolved: 2019-12-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 13 JDK 14 JDK 15
11.0.7Fixed 13.0.4Fixed 14 b27Fixed 15Fixed
Related Reports
Relates :  
Description
There are a few sscanf  calls in hotspot  missing return value checking.
Comments
We also need to backport JDK-8240360 (11u, 13u), cause it fixes a regression with this one...
10-06-2020

Fix request (13u): The original change applies cleanly, passes tier1 and tier2 tests.
03-06-2020

This change silently reverted the fix for JDK-8216559, causing jdk/jfr/event/runtime/TestNativeLibrariesEvent.java to start failing again on systems with 3-digit device ids. The bug introduced by JDK-8216559 should have been addressed in a separate change, by increasing the size of the 'device' buffer, not by decreasing the format spec width.
22-05-2020

jdk11 fix request I would like to have the patch in jdk11 too, becausethe issue is present there as well. The patch applies cleanly.
17-01-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/ed442869a2fc User: mbaesken Date: 2019-12-12 08:26:06 +0000
12-12-2019