Skip to content

Commit

Permalink
8261299: Use-after-free on failure path in LinuxPackage.c, getJvmLaun…
Browse files Browse the repository at this point in the history
…cherLibPath

Reviewed-by: stuefe, herrick
  • Loading branch information
shipilev committed Feb 9, 2021
1 parent a00b130 commit 01d9280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jdk.jpackage/linux/native/applauncher/LinuxPackage.c
Expand Up @@ -324,6 +324,7 @@ char* getJvmLauncherLibPath(void) {
&launcherLibPath);
if (popenStatus) {
free(launcherLibPath);
launcherLibPath = NULL;
goto cleanup;
}
}
Expand Down

1 comment on commit 01d9280

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.