[jdk8u-dev] RFR: 8343334: JFR crash in JfrEmergencyDump::build_dump_path

lingjun-cg duke at openjdk.org
Thu Oct 31 03:26:08 UTC 2024


Expect a string value but actually pass an integer value to `jio_snprintf` which could lead to undefined behavior.
The minor result is the error JFR file path, the major result is JVM crash.

-------------

Commit messages:
 - 8343334: JFR crash in JfrEmergencyDump::build_dump_path

Changes: https://git.openjdk.org/jdk8u-dev/pull/599/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk8u-dev&pr=599&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8343334
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk8u-dev/pull/599.diff
  Fetch: git fetch https://git.openjdk.org/jdk8u-dev.git pull/599/head:pull/599

PR: https://git.openjdk.org/jdk8u-dev/pull/599


More information about the jdk8u-dev mailing list