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.
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.