-
Bug
-
Resolution: Fixed
-
P3
-
22
-
b04
-
Verified
The specifiaction for ClassModel parse(byte[] bytes) states
Throws: IllegalArgumentException - if the classfile format is unsupported or invalid.
Some invalid class files violate this assertion, leading to unexpected exceptions:
"BrokenCode.class" // java.lang.classfile.constantpool.ConstantPoolException: Bad CP UTF8 index: 1536
"BadConstantPoolCount.class" // java.lang.ArrayIndexOutOfBoundsException: Index 49915 out of bounds for length 174
"BadCPTag.class" // java.lang.classfile.constantpool.ConstantPoolException: Bad tag (254) at index (12) position (161)
Throws: IllegalArgumentException - if the classfile format is unsupported or invalid.
Some invalid class files violate this assertion, leading to unexpected exceptions:
"BrokenCode.class" // java.lang.classfile.constantpool.ConstantPoolException: Bad CP UTF8 index: 1536
"BadConstantPoolCount.class" // java.lang.ArrayIndexOutOfBoundsException: Index 49915 out of bounds for length 174
"BadCPTag.class" // java.lang.classfile.constantpool.ConstantPoolException: Bad tag (254) at index (12) position (161)
- relates to
-
JDK-8321540 ClassSignature.parseFrom() throws StringIndexOutOfBoundsException for invalid signatures
- Closed