-
Enhancement
-
Resolution: Fixed
-
P4
-
19
-
b15
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8302919 | 17.0.8-oracle | Fairoz Matte | P4 | Resolved | Fixed | b01 |
JDK-8294674 | 17.0.6 | Yuri Nesterenko | P4 | Resolved | Fixed | b01 |
JDK-8294708 | 15.0.10 | Yuri Nesterenko | P4 | Resolved | Fixed | b01 |
JDK-8294707 | 13.0.14 | Yuri Nesterenko | P4 | Resolved | Fixed | b01 |
JDK-8305115 | 11.0.20-oracle | Fairoz Matte | P4 | Resolved | Fixed | b01 |
JDK-8307426 | 11.0.20 | Lucy Schmidt | P4 | Resolved | Fixed | b02 |
src/java.base/share/native/libverify/check_code.c:942:5: error: 'lengths' may be used uninitialized [-Werror=maybe-uninitialized]
942 | check_and_push(context, lengths, VM_MALLOC_BLK);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/java.base/share/native/libverify/check_code.c:4145:13: note: by argument 2 of type 'const void *' to 'check_and_push' declared here
4145 | static void check_and_push(context_type *context, const void *ptr, int kind)
| ^~~~~~~~~~~~~~
Because the second argument of check_and_push is "const void*" GCC assumes that the malloc:ed data, which has not yet been initialized, will not be/can not be modified later which in turn suggests it may be used without ever being initialized.
The same general issue was addressed in
- backported by
-
JDK-8294674 Uninitialized warning in check_code.c with GCC 11.2
- Resolved
-
JDK-8294707 Uninitialized warning in check_code.c with GCC 11.2
- Resolved
-
JDK-8294708 Uninitialized warning in check_code.c with GCC 11.2
- Resolved
-
JDK-8302919 Uninitialized warning in check_code.c with GCC 11.2
- Resolved
-
JDK-8305115 Uninitialized warning in check_code.c with GCC 11.2
- Resolved
-
JDK-8307426 Uninitialized warning in check_code.c with GCC 11.2
- Resolved
- blocks
-
JDK-8283057 Update GCC to version 11.2.0 for Oracle builds on Linux
- Resolved
- relates to
-
JDK-8266168 -Wmaybe-uninitialized happens in check_code.c
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/a22373bf
-
Commit openjdk/jdk13u-dev/d4280f18
-
Commit openjdk/jdk15u-dev/ca5adc33
-
Commit openjdk/jdk17u-dev/beb2ca22
-
Commit openjdk/jdk/d8893fad
-
Review openjdk/jdk11u-dev/1855
-
Review openjdk/jdk13u-dev/414
-
Review openjdk/jdk15u-dev/285
-
Review openjdk/jdk17u-dev/724
-
Review openjdk/jdk/7794
-
Review openjdk/jdk/7859