JDK-8076475 : Misuses of strncpy/strncat
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-01
  • Updated: 2020-06-09
  • Resolved: 2015-04-22
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 8 JDK 9 Other
8u261Fixed 9 b64Fixed openjdk8u262Fixed
Code Review showed a number of places in hotspot coding where strncpy/strncat etc coding was used in an imperfect manner. This could be fixed.
Oracle parity with 8u261 http://cr.openjdk.java.net/~aph/8076475-8u/ Original bug: https://bugs.openjdk.java.net/browse/JDK-8076475 Original patch: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/4cf3113c8f42 In a couple of places the original patch didn't apply because the code being patched was not there yet. Other places required some minor adjustments.