-
Enhancement
-
Resolution: Fixed
-
P4
-
11, 16
-
b13
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8293411 | 15.0.9 | Yuri Nesterenko | P4 | Resolved | Fixed | b04 |
JDK-8293585 | 13.0.13 | Yuri Nesterenko | P4 | Resolved | Fixed | b04 |
JDK-8304490 | 11.0.20-oracle | Fairoz Matte | P4 | Resolved | Fixed | b01 |
JDK-8275576 | 11.0.14 | Christoph Langer | P4 | Resolved | Fixed | b01 |
In file included from test/hotspot/jtreg/vmTestbase/vm/mlvm/indy/func/jvmti/share/libIndyRedefineClass.cpp:31:
test/hotspot/jtreg/vmTestbase/vm/mlvm/share/mlvmJvmtiUtils.cpp:100:12: error: 'char* strncpy(char*, const char*, size_t)' specified bound 256 equals destination size [-Werror=stringop-truncation]
100 | strncpy(mn->classSig, szSignature, sizeof(mn->classSig));
| ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
It seems like gcc is not smart enough to realize that the strncpy on the previous line (mn->methodName) cannot modify szSignature.
- backported by
-
JDK-8275576 Make mlvmJvmtiUtils strncpy uses GCC 10.x friendly
-
- Resolved
-
-
JDK-8293411 Make mlvmJvmtiUtils strncpy uses GCC 10.x friendly
-
- Resolved
-
-
JDK-8293585 Make mlvmJvmtiUtils strncpy uses GCC 10.x friendly
-
- Resolved
-
-
JDK-8304490 Make mlvmJvmtiUtils strncpy uses GCC 10.x friendly
-
- Resolved
-
- relates to
-
JDK-8232187 Add os::strncpy_s
-
- Open
-
-
JDK-8218937 Make mlvmJvmtiUtils strncpy uses GCC 8.x friendly
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/b1221190
-
Commit openjdk/jdk13u-dev/6ce4b72c
-
Commit openjdk/jdk15u-dev/753beccf
-
Review openjdk/jdk11u-dev/475
-
Review openjdk/jdk13u-dev/400
-
Review openjdk/jdk15u-dev/270