-
Bug
-
Resolution: Fixed
-
P3
-
7
-
b03
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2195082 | 7 | Keith Mcguigan | P3 | Closed | Fixed | b99 |
JDK-2197920 | 6u23 | Keith Mcguigan | P3 | Closed | Fixed | b01 |
JDK-2199823 | 6u22m | Keith Mcguigan | P3 | Closed | Fixed | b01 |
JDK-2197628 | 6u21p | Keith Mcguigan | P3 | Closed | Fixed | b03 |
---Excerpt-from-spec---
CONSTANT_NameAndType_info {
u1 tag;
u2 name_index;
u2 descriptor_index;
}
...
The items of the CONSTANT_NameAndType_info structure are as follows:
...
descriptor_index
The value of the descriptor_index item must be a valid index into the
constant_pool table. The constant_pool entry at that index must be a
CONSTANT_Utf8_info (4.4.7) structure representing a *valid* field descriptor
(4.3.2) or method descriptor (4.3.3).
---End-of-excerpt---
However, JVM class format checker does not reject classes with invalid
(according to Section 4.3.3) method descriptors at the descriptor_index
in the CONSTANT_NameAndType_info structure (like "(#)V", "(.)V", "(;)V",
"()V#" or similar) if there are *NO any explicit or implicit references*
to this NameAndType from a class methods bytecodes.
- backported by
-
JDK-2195082 classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases
- Closed
-
JDK-2197628 classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases
- Closed
-
JDK-2197920 classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases
- Closed
-
JDK-2199823 classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases
- Closed
- duplicates
-
JDK-6901306 classfile format checker permits array descriptor of more than 255 dims in CONSTANT_NameAndType_info
- Closed
-
JDK-6844449 JVM crash for some invalid invokedynamic's method descriptors
- Closed
-
JDK-6930576 classfile format checker allows invalid descriptor in CONSTANT_NameAndType_info [invokedynamic]
- Closed
- relates to
-
JDK-4254317 [Verifier:Old] The result of verification pass 2 is undefined
- Closed