[jdk11u-dev] RFR: 8286705: GCC 12 reports use-after-free potential bugs

Andrew John Hughes andrew at openjdk.org
Sat Feb 17 20:36:04 UTC 2024


Hi all,

This pull request contains a backport of commit [0e4bece5](https://github.com/openjdk/jdk/commit/0e4bece5b5143b8505496ea7430bbfa11e151aff) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository.

The commit being backported was authored by Yasumasa Suenaga on 15 May 2022 and was reviewed by Kim Barrett.

The backport to `parse_manifest.c` applied cleanly. The patch as a whole doesn't apply cleanly as it also patches `src/jdk.jpackage/linux/native/applauncher/LinuxPackage.c` and `jpackage` is not part of 11u.

It fixes a `use-after-free` warning which prevents GCC 12+ from building 11u without `--disable-warnings-as-errors`.
   
Thanks!

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

Commit messages:
 - Backport 0e4bece5b5143b8505496ea7430bbfa11e151aff

Changes: https://git.openjdk.org/jdk11u-dev/pull/2524/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2524&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8286705
  Stats: 3 lines in 1 file changed: 1 ins; 1 del; 1 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/2524.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2524/head:pull/2524

PR: https://git.openjdk.org/jdk11u-dev/pull/2524


More information about the jdk-updates-dev mailing list