-
Bug
-
Resolution: Fixed
-
P4
-
17, 19
-
b23
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8341807 | 17.0.14-oracle | Fairoz Matte | P4 | Resolved | Fixed | master |
JDK-8300936 | 17.0.7 | Yasumasa Suenaga | P4 | Resolved | Fixed | b01 |
JDK-8329333 | 11.0.24 | Andrew Hughes | P4 | Resolved | Fixed | b01 |
```
In function 'find_positions',
inlined from 'find_file' at /home/ysuenaga/github-forked/jdk/src/java.base/share/native/libjli/parse_manifest.c:364:9:
/home/ysuenaga/github-forked/jdk/src/java.base/share/native/libjli/parse_manifest.c:292:34: warning: pointer 'endpos' used after 'free' [-Wuse-after-free]
292 | pos = flen - (endpos - cp);
| ~~~~~~~~^~~~~
/home/ysuenaga/github-forked/jdk/src/java.base/share/native/libjli/parse_manifest.c:291:13: note: call to 'free' here
291 | free(buffer);
| ^~~~~~~~~~~~
Updating jdk/modules/jdk.jpackage/jdk/jpackage/internal/resources/jpackageapplauncher due to 1 file(s)
/home/ysuenaga/github-forked/jdk/src/jdk.jpackage/linux/native/applauncher/LinuxPackage.c: In function 'popenCommand':
/home/ysuenaga/github-forked/jdk/src/jdk.jpackage/linux/native/applauncher/LinuxPackage.c:180:63: warning: pointer 'strBufBegin' may be used after 'realloc' [-Wuse-after-free]
180 | strBufNextChar = strNewBufBegin + (strBufNextChar - strBufBegin);
| ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/ysuenaga/github-forked/jdk/src/jdk.jpackage/linux/native/applauncher/LinuxPackage.c:174:30: note: call to 'realloc' here
174 | strNewBufBegin = realloc(strBufBegin, strBufCapacity);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
- backported by
-
JDK-8300936 GCC 12 reports use-after-free potential bugs
- Resolved
-
JDK-8329333 GCC 12 reports use-after-free potential bugs
- Resolved
-
JDK-8341807 GCC 12 reports use-after-free potential bugs
- Resolved
- relates to
-
JDK-8286562 GCC 12 reports some compiler warnings
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/5d4de366
-
Commit openjdk/jdk17u-dev/0056a633
-
Commit openjdk/jdk/0e4bece5
-
Review openjdk/jdk11u-dev/2524
-
Review openjdk/jdk17u-dev/1088
-
Review openjdk/jdk/8696