6930553: classfile format checker allows invalid method descriptor in CONSTANT_NameAndType_info in some cases

Check NameAndType_info signatures aggressively, even when unreferenced

Reviewed-by: coleenp, acorn, never
This commit is contained in:
Keith McGuigan 2010-05-27 17:06:39 -04:00
parent d2703f3e8d
commit 211a79fc65
2 changed files with 55 additions and 21 deletions

View file

@ -195,6 +195,9 @@ class ClassFileParser VALUE_OBJ_CLASS_SPEC {
if (!b) { classfile_parse_error(msg, index, name, CHECK); }
}
void throwIllegalSignature(
const char* type, symbolHandle name, symbolHandle sig, TRAPS);
bool is_supported_version(u2 major, u2 minor);
bool has_illegal_visibility(jint flags);